[antlr-interest] Problem coding Antlr grammar for strings

Luís Reis luiscubal at gmail.com
Sun Jul 19 04:31:50 PDT 2009


2009/7/19 Gavin Lambert <antlr at mirality.co.nz>

> 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.
>
>
When I run it via real code, it works. Is this an interpreter bug?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090719/079efd20/attachment.html 


More information about the antlr-interest mailing list