Open mingodad opened 2 months ago
I think all people starting to write a language start with bison/yacc/flex. Then they all arrive to the same conclusion; it doesn't really work nicely in that it becomes one big mess. A custom tokenizer with a handwritten parser is much easier and faster, so that's where they all end up :)
What you a clickable EBNF have as advantage?
What you a clickable EBNF have as advantage? Documentation !
On https://github.com/c3lang/c3c/blob/master/resources/grammar/grammar.y they have a fully working grammar using bison/flex and that can be used to make a
C2lang
grammar.Another option is to use the
EBNF
generated from that grammar that can be understood by (IPV4) https://rr.red-dove.com/ui or (IPV6) https://www.bottlecaps.de/rr/ui to also trim down/expand to ac2lang
grammar with a nice navigable railroad diagram (see instructions bellow at the top).