[antlr-interest] Expression evaluator error [v3 wiki]
Terence Parr
parrt at cs.usfca.edu
Wed Nov 29 08:30:52 PST 2006
Jean had the same problem but was using old version not 3.0b5. It
works for me...i just built it and put it up ;)
Ter
On Nov 29, 2006, at 3:57 AM, Kay Roepke wrote:
>
> On 29. Nov 2006, at 12:36 , Hugo Garcia wrote:
>
>> At http://www.antlr.org/wiki/display/ANTLR3/Expression+evaluator
>>
>> I cut and past the grammar and succesfully generate a parser and a
>> lexer but when I open the code for the parser then I get the
>> following
>> error (line 382 in my editor) :
>
> Ouch. Changing the offending line to
>
> | '(' e=expr ')' {$value = $e.value;}
>
> works as expected. I'll investigate.
>
> Thanks,
>
> -k
> --
> Kay Röpke
> http://classdump.org/
>
>
>
>
More information about the antlr-interest
mailing list