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
There is an intent to distinguish EBNF grammar and code examples using yellow and blue boxes (quoted from here):
This is the EBNF grammar used in this document, presented in yellow boxes.
```alternation ::= expr0 | expr1 | expr2 // Either expr0 or expr1 or expr2.sequence ::= expr0 expr1 expr2 // Sequence of expr0 expr1 expr2.repetition0 ::= expr* // 0 or more occurrences.repetition1 ::= expr+ // 1 or more occurrences.optionality ::= expr? // 0 or 1 occurrence.grouping ::= (expr) // Everything inside parens is grouped together.literal ::= `abcd` // Matches the literal `abcd`.```
Code examples are presented in blue boxes.
```// This is an example use of the grammar above:// This matches things like: ba, bana, boma, banana, banoma, bomana...example ::= `b` (`an` | `om`)* `a````