Earley
Earley copied to clipboard
Generate ABNF/EBNF from Earley grammar
Any idea how hard this would be to do? If Earley could generate EBNF then users could pass it to tools like GrammKit to make nice diagrams for their grammar.
Sounds quite doable if you're prepared to adapt your grammars a bit. As the library stands you could use <?> as a way to label what you cannot reify, e.g. to give a string description of your terminals or to give your rules names.