-
Notifications
You must be signed in to change notification settings - Fork 28
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
Optional Token in parser #20
Comments
It should work to do this:
Here's an example for If you're asking for a convenient shorthand (like |
Sorry, didn't realize that I could do that. The shorthand would be awesome tho! |
Correct me if i'm wrong, but I believe this causes a shift-reduce conflict? |
Would it be possible to add support for an optional token in the parser?
I'm trying to implement a parser that allows me to parse a language with an optional semicolon. If this is already implemented it probably should be documented.
The text was updated successfully, but these errors were encountered: