Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate ABNF/EBNF from Earley grammar #44

Open
seagreen opened this issue Aug 18, 2019 · 1 comment
Open

Generate ABNF/EBNF from Earley grammar #44

seagreen opened this issue Aug 18, 2019 · 1 comment

Comments

@seagreen
Copy link

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.

@ollef
Copy link
Owner

ollef commented Aug 18, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants