-
Notifications
You must be signed in to change notification settings - Fork 24
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
Add a eof
terminal
#37
Comments
It seems like it should be possible to add as a primitive, but might add some complexity to the implementation. There are also some questions that need to be answered like whether Could you get away with adding an |
For the use case I described, it should be the same.
No. Let's say I want to parse |
I don't see how this functionality would break any existing parser. |
Contributions would be welcome.
…On Mon, 22 Oct 2018, 22:19 Vladislav Zavialov, ***@***.***> wrote:
whether it can be done in a backward compatible way.
I don't see how this functionality would break any existing parser.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#37 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAMDra7F9E5mPevA-SWhEqkzv4vPk76Dks5unig8gaJpZM4XzuNd>
.
|
Turns out this is possible using existing functionality: #40. |
Is it possible to have
that matches the end of input?
I have a grammar that accepts expressions in parentheses:
And, given
([2])
it will produce the following value:I'd like to modify it like this:
so that expressions with unbalanced parentheses can be parsed. Given
([2
it would producecc @artemohanjanyan
The text was updated successfully, but these errors were encountered: