Open
Description
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`
```
However, all boxes appear gray when rendered:
Either fix the theme or remove mentions of yellow and blue boxes to avoid confusion.
Metadata
Metadata
Assignees
Labels
No labels