[antlr-interest] ANTLRWorks interpreter issue
Gavin Lambert
antlr at mirality.co.nz
Sun Sep 13 13:32:09 PDT 2009
At 02:30 14/09/2009, Eugene Toder wrote:
>I've found an issue with interpreter where it doesn't consume
the
>second alternative in (a | b)* expression. In a simple example
>this leads to incomplete parse tree, in more complex cases this
>leads to NoViableAltException.
>In all cases the grammar works as expected in the debugger.
In my experience the interpreter is generally flaky anyway (and of
course it doesn't process semantic predicates). It's usually best
to just pretend that it doesn't exist and always use the debugger
instead.
More information about the antlr-interest
mailing list