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

EBNF? ABNF? #17

Open
shnewto opened this issue Oct 30, 2017 · 3 comments
Open

EBNF? ABNF? #17

shnewto opened this issue Oct 30, 2017 · 3 comments

Comments

@shnewto
Copy link
Owner

shnewto commented Oct 30, 2017

Thinking about future features that could add value somewhere down the road. Initial ideas on design might be something like the following?

extern crate bnf;
// ...
let ebnf_grammar = bnf::ebnf::parse(ebnf_input);
let abnf_grammar = bnf::abnf::parse(abnf_input);

Alternatively we might be able to just make bnf::parse smart enough to intuit the variant used.

@neverfox
Copy link

I would love to see this.

@SKalt
Copy link
Contributor

SKalt commented Nov 12, 2019

I've got an extremely rough draft of w3c EBNF support open on a fork of this repo, in case anyone's interested in pushing forward on this front. It has at most 50% of the w3c EBNF production-parsers implemented.

@shnewto
Copy link
Owner Author

shnewto commented Nov 12, 2019

@SKalt oh awesome! Would you be willing to make a PR with a 'work in progress' label? That'd make it easy for anyone interested to see the changes you have so far and to ask questions if there are any.

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

3 participants