-
Notifications
You must be signed in to change notification settings - Fork 48
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 would be great #21
Comments
Whoops, I missed it, my bad. |
Hi Will, No worries, and welcome to Gocc :) Including an answer to this question from Marius (#13 (comment)):
Cheers /u |
@mewmew Thanks! In the current version, I see lexer support for EBNF grouping I'm experimenting with the Haskell syntax, which uses exceptions. |
I don't think there is a way to do difference. If I am correct, it is basically equivalent to a & !b, but gocc does not have AND. |
Putting it in terms of & makes total sense, since CFLs aren't closed under intersection. Thanks. |
Yes CFLs are not closed under intersection, but regular languages are. |
@awalterschulze I think being able to do something like |
Looks like I was confused but partly right initially. There is sort-of-EBNF for lexers, but not for parsers. It would be convenient for parser grammars to at least have repetitions ( |
Yes trying to match brackets makes it "irregular". I think @goccmack tried to add an EBNF syntax and that would have included {} and [] etc, but he said that this makes it hard to write LR(1) grammars and the user tends to cause more conflicts. |
Any plans for EBNF support?
The text was updated successfully, but these errors were encountered: