[antlr-interest] mysterious bug with ANTLR Works 1.0.2

Jean Bovet antlr-list at arizona-software.ch
Wed Jul 18 20:48:59 PDT 2007


Are you entering "ToString() + 2.0e3" in the debugger input text?  
Which starting rule are you using? If I use "expression" as the  
starting rule, it works fine.

Regards,

Jean

On Jul 18, 2007, at 6:34 AM, Lloyd Dupont wrote:

> Sometimes, when I try to debug my grammar with ANTLRWork, I get  
> output in the debugger which has nothing to do with the strings I  
> typed in....
>
> for exemple I try to parse the following input:
> ===
> 1.ToString() + 2.0e3
> ===
> with the Grammar attached in ANTLRWorks 1.0.2
>
> and I get a parser error on the 1st token: "oString"
> it doesn't make much sense...
>
> does any one have an idea about what's going on?!?
> <ExpTest.g>



More information about the antlr-interest mailing list