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

Better ANTLR parse error wrong-token error message #38

Open
mmatsa opened this issue Feb 2, 2017 · 0 comments
Open

Better ANTLR parse error wrong-token error message #38

mmatsa opened this issue Feb 2, 2017 · 0 comments

Comments

@mmatsa
Copy link
Contributor

mmatsa commented Feb 2, 2017

Here is the current error message:

line 571:0 extraneous input 'rule' expecting {MT_scopes_OPT, ET_scopes_OPT, MT_scope_ZOM, ET_scope_ZOM, ',', ')'} Error(s) while parsing null. Exiting.

Lionel said to add this to an issue. He also says:

this error just say that ‘rule' is unexpected. ANTLR gives the valid tokens, which is of little help
a better way would be to print the token regexes

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

1 participant