[antlr-interest] Multiplication and pointers in C-style language

Doucette, Charles cdoucette at vaultus.com
Wed Apr 30 08:23:02 PDT 2008


I believe you are supposed to drop the "$" which is not what the book says.

Chuck

> -----Original Message-----
> From: antlr-interest-bounces at antlr.org
> [mailto:antlr-interest-bounces at antlr.org] On Behalf Of Steve O'Hara
> Sent: Wednesday, April 30, 2008 10:38 AM
> To: antlr-interest at antlr.org
> Subject: Re: [antlr-interest] Multiplication and pointers in
> C-style language
>
> Hello,
>
> I must be missing something pretty basic but I don't know what it is.
> The example grammar below produces the "missing attribute
> access on rule
> scope: endClause"
> The book (page 126) indicates that you can do this - any
> ideas what I'm doing wrong?
>
>
> @members {
>     public Token EndClause=null;
> }
>
> statement
>     :  FIND (tableList | statsClause) queryExpression? endClause?
> {EndClause=$endClause;}
>     ;
>
> Thanks,
>
> Steve
>
>


More information about the antlr-interest mailing list