Closed mingodad closed 3 years ago
And this is one of the reasons I'm advocating to have an option to output an EBNF compatible with https://www.bottlecaps.de/rr/ui to help visually understand the iterations of a rule.
Input on Edit Grammar tab:
equiv ::= (A B) | (C | D)
Simplified shown on View Diagram tab:
equiv ::= A B
| C
| D
And here in https://arthursonzogni.com/Diagon/#Grammar (as their EBNF syntax):
equiv = (A , B) | (C | D);
Output:
equiv:
│├──╮── A ── B ──╭──┤│
│ │
╰──── C ─────╯
│ │
╰──── D ─────╯
You are correct. There was a typo in the README.
Fixed by #6
Looking at the
README.md
and the explanation/example shown bellow:If I understood it correctly because we are using grouping
()
to override precedence the example above could not be equivalent.