-
Notifications
You must be signed in to change notification settings - Fork 419
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
BUG in error message #2
Comments
This is indeed a bug. I have found the cause and I'll fix it in few minutes in the development version of PEG.js. The online version will remain unaffected until I release PEG.js 0.5 (I use last stable version on the web). Thanks for reporting! |
Fix bug causing incorrect error messages The bug could cause the list of expected strings in an error message to Closed by d1fc16c. |
Merge changes from 14/02 to 02/04
The bug could cause the list of expected strings in an error message to contain strings that shouldn't be there. Closes pegjs#2.
In the arithmetic demo, if you enter "2*(3+4++5)", it will return the following message:
Line 1, column 8: Expected "(", ")", "+" or integer but "+" found.
Indeed, first it says that "+" is one of the possible value, but in the end it complains that + had been provided.
Tested in the online version.
BTW, greater parser generator !
Laurent Debacker.
The text was updated successfully, but these errors were encountered: