[antlr-interest] Problem coding Antlr grammar for strings

Gavin Lambert antlr at mirality.co.nz
Sun Jul 19 03:55:50 PDT 2009


At 22:39 19/07/2009, Luís Reis wrote:
>and that problem still persists... The diagram 
>on the right of ANTLRWorks' interpreter shows 
>MismatchedTokenException(-1!=11)

-1 means EOF, which means that something is 
consuming to the end of the file.

What happens when you run it through the 
debugger, or via real code?  The interpreter 
often can't be trusted.



More information about the antlr-interest mailing list