[antlr-interest] Hello World!

Terence Parr parrt at cs.usfca.edu
Thu Dec 23 14:20:56 PST 2010


hi Chris.  Does expr return a value called value?
Ter
On Dec 23, 2010, at 2:15 PM, chris king wrote:

> Hi,
> 
> I just bought the book and was trying out some samples. I encountered a
> little error and I'm wondering if it's my fault. I copied this from page 69:
> 
> expr NEWLINE {System.out.println($expr.value);}
> 
> And when I use (the incredible) ANTLRWorks I get an error
> 
> [12:10:31] error(116): c:\users\cking\documents\visual studio
> 2010\Projects\antlr\antlr\Expr.g:20:23: unknown attribute for rule expr:
> value
> 
> Maybe it should be expr.text? Or am I using the wrong version? I'm currently
> rocking out with 1.4.2 of AntlerWorks.
> 
> Thanks,
> Chris
> 
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address



More information about the antlr-interest mailing list