Hi, all
I discovered an issue in ANTLR 4.5 and would like to seek some help here.
This issue is reproducible with:
ANTLR version 4.5
Code generation target: Java
With the following grammar and start rule name [1] being `exprEof`,
expression `Foo(A B)` gives me meaningful error message as expected:
line 1:6 extraneous input 'B' expecting ')'
(exprEof (expr (expr Foo) ( A B )) <EOF>)
However, without changing start rule name, **if I add a new rule expr2, which will not be used at all**:
Error message then becomes the following, which gives no clue at all:
line 1:3 mismatched input '(' expecting <EOF>
(exprEof (expr Foo) ( A B ))