Earley icon indicating copy to clipboard operation
Earley copied to clipboard

Generate ABNF/EBNF from Earley grammar

Open seagreen opened this issue 6 years ago • 1 comments

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.

seagreen avatar Aug 18 '19 18:08 seagreen

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.

ollef avatar Aug 18 '19 20:08 ollef