-
Notifications
You must be signed in to change notification settings - Fork 11
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
sample problems #76
Comments
Which grammar? Expr.g4 or JavaLexer.g4/JavaParser.g4? Those are the only two discussed. https://github.com/antlr/antlr4-tools#parsing-using-interpreter |
sorry I wasn't more clear . it's the default sample |
The default example at lab.antlr.org is supposed to contain the error. It's a demo of how it reports an error. If you change the input line |
ok that matches the rules. anyway, thanks for helping me. Garry |
Hi, I'm running the sample in antlr tools and getting these comments.
2:9 token recognition error at: '+'
2:10 extraneous input 'foo' expecting ';'
I've made no changes and just clicked the run button. The '+' makes sense to me since it's not in the lexer. It does build the tree but 'foo' is highlighted in the tree and input . Is this meant to be a learning exercise or possibly a bug?
My apologies if this has already been explained.
Thx
Garry
The text was updated successfully, but these errors were encountered: