[antlr-interest] antlrworks "NoViableAlt" exception

Tom fivemiletom at gmail.com
Wed Nov 7 20:15:23 PST 2012


Hello,

I am new to ANTLR, using version 3.4.

Does anybody have an idea what could be causing the following discrepancy:

When I use the GUI interpreter on an input I get some console errors below.

Now I use the debugger on exactly the same input (copy/paste), the whole
thing works:  whole ASTree is built as I want it.

I have seen some posts about line ending characters and having to reset the
token stream, but this all doesn't seem to apply here, does it?


Thanks
Tom



console errors:
==
[20:01:04] Interpreting...
[20:01:04] problem matching token at 1:3 MismatchedTokenException(97!=34)
[20:01:04] problem matching token at 1:4 NoViableAltException('a'@[1:1:
Tokens : ( AND | COMMA | OR | T__26 | T__27 | T__28 | T__29 | T__30 | T__31
| T__32 | T__33 | T__34 | T__35 | WS | Number | Exponent | String );])


More information about the antlr-interest mailing list