We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e394cf commit c7e20dbCopy full SHA for c7e20db
index.html
@@ -486,8 +486,11 @@ <h2><a name="actions">Adding Parse Actions</a></h2>
486
487
<p>Let's try it.</p>
488
489
-<p class="note">(Note the way the priority is "backwards" due to the
490
-particular way in which the grammar is ambiguous...)</p>
+<p class="note">(Note the way the priority is "backwards": since all the
+rules are going to be part of the parse, the priority just chooses which
491
+ones are closer to the top of the tree. But operator precedence works
492
+the other way: higher precedence operators bind more tightly to the
493
+leaves.)</p>
494
495
<pre><code>expr = new Grammar('E',
496
E ::= E + E → d[0] + d[2]
0 commit comments