-
Notifications
You must be signed in to change notification settings - Fork 32
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
lrpar:%prec not followed by token name #450
Comments
If you can include the raw text of the input and the error that's produced, that would be helpful. |
|
Can you also include the error you're seeing please? |
|
That probably means that your lexer isn't defining |
It can be troublesome to resolve the shift/reduce between rules without %nonassoc“. According to yacc's rules,% nonassoc** should not be bound to a token |
I don't think |
To get the example working through nimbleparse (besides adding a lex file for it), I had to add the following,
as well as using the Edit: Also unrelated but it is strange that the following error lacks
|
I think there's at laest 1 bug in grmtools here. Investigating. |
OK so with this lexer:
and this grammar:
I was able to replicate the problem. #453 fixes the problem for me (and with inputs such as "2+3*4" gives a parse tree I'd expect), even if it's not quite the fix I might have hoped for. Will see what @ratmice says in the review though, as my memory is fuzzy on some details. |
I'm going to keep this one open until #453 is reviewed, because I'm not 100% confident of my fix! |
I use %nonassoc,always error
The text was updated successfully, but these errors were encountered: