-
-
Notifications
You must be signed in to change notification settings - Fork 183
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
Some errors in "grammar.y" not caught by bison #1136
Comments
I'm unsure of some of those lexer changes, 1__000__000 is actually permitted currently. And I think there was something else there as well. I'll have a look. Keep in mind that the top level compile time if/switch is removed. Otherwise the grammar fixes were all good. |
What do you mean by |
No I mean it's gone and I removed it from the dev branch already, but your grammar.y had it still. |
Why did you change to {HEX}+ wasn't that redundant? |
Do you mean "Why did I changed from |
Sorry that was me reading things wrong. I think I updated with most of your changes now, but the 1__0 will not be invalid until 0.5.5 |
Thank you ! |
I've updated in the dev branch already. It's fine if your parser only accepts |
I think I can close this. |
While doing some tests with a script to convert
grammar.y
to atree-sitter
grammar I discovered what seems to be a copy and paste mistake that bison doesn't detect.Here
c3c/resources/grammar/grammar.y
Line 758 in c673101
:
by|
(what seems to a copy and paste operation that forgot to replace:
by|
).There was also some rules without the closing
;
and mix of spaces and tabs, the lexer also was missingBANBANG
definition and other minor problems (see my proposed fixes in the attached zip bellow).gramlex.zip
The text was updated successfully, but these errors were encountered: