You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We check that the list of grammar "roots" -- that is, productions that
are not used in any other production -- is what we expect it to be.
We had hard coded this list of roots in `mdbook-spec`. Let's instead
add a way to specify this in our syntax for productions by prefixing
the production with `@root`.
Copy file name to clipboardExpand all lines: docs/grammar.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,8 @@ The category is used to group similar productions on the grammar summary page in
16
16
17
17
The syntax for the grammar itself is pretty close to what is described in the [Notation chapter](../src/notation.md), though there are some rendering differences.
18
18
19
+
A "root" production, marked with `@root`, is one that is not used in any other production.
20
+
19
21
The syntax for the grammar itself (written in itself, hopefully that's not too confusing) is:
0 commit comments