-
Notifications
You must be signed in to change notification settings - Fork 3
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
Attempt to subtract with overflow #16
Comments
Thanks for the report. I don't think it could be a grammar issue. It smells to me like a bug in code gen. Could you make a PR with a failing regression test? Probably the best place to put it is in the tests crate. Something like |
Oh sure! Sorry, it may take me a couple days. Thanks for the pointers for making the test. Although TBH I'm not confident I have the exact text that caused the issue on hand... I'll see if I can reproduce it. I should have included the text too. |
Thanks much for the PR! No problem at all for the delays. I'm also sometimes very slow in responses depending on other tasks I have so no worries. |
I figured out what the problem is but it requires a bit of work. Only default builder for GLR is affected. Thus, the workaround until I fix the issue is to either use generic builder or LR parsing. |
@andrewbaxter I've finished rework of the generator. This issue is resolved. Thanks again for the regression test. I'll make a bugfix release in the following days. |
Awesome, thanks! 🙇 |
Describe the bug
The code panics at
from the generated code:
It's possible that this is a grammar issue, but it's not clear what happened from info in the panic itself.
Here's the grammar:
So foremost this is a bug about error messages.
The text was updated successfully, but these errors were encountered: