[antlr-interest] ANTLRWorks interpretter bug
Tristan Aubrey-Jones
taj105 at ecs.soton.ac.uk
Wed Feb 16 06:19:37 PST 2011
Hi there,
I've been trying the Expression evaluator tutorial at
http://www.antlr.org/works/help/tutorial/calculator.html [1] and am getting
a MismatchedTokenException(10!=4) when parsing strings containing
subtraction like "1-2n" in the interpreter. The grammar works fine when I
generate and debug but in the interpreter it fails. If I swap the '+' and
'-' expressions the same problem occurs with the '+' instead of the '-' so
its positional. Any ideas?
Thanks,
Tristan
Links:
------
[1]
http://www.antlr.org/works/help/tutorial/calculator.html
More information about the antlr-interest
mailing list