Skip to content
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

Closed
debackerl opened this issue May 15, 2010 · 2 comments
Closed

BUG in error message #2

debackerl opened this issue May 15, 2010 · 2 comments

Comments

@debackerl
Copy link

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.

@dmajda
Copy link
Contributor

dmajda commented May 22, 2010

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!

@dmajda
Copy link
Contributor

dmajda commented May 22, 2010

Fix bug causing incorrect error messages

The bug could cause the list of expected strings in an error message to
contain strings that shouldn't be there.

Closed by d1fc16c.

GerHobbelt pushed a commit to GerHobbelt/pegjs that referenced this issue Oct 12, 2015
Merge changes from 14/02 to 02/04
pwagland pushed a commit to pwagland/pegjs that referenced this issue Nov 6, 2015
The bug could cause the list of expected strings in an error message to
contain strings that shouldn't be there.

Closes pegjs#2.
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants