[antlr-interest] Multiplication and pointers in C-style language
    Terence Parr 
    parrt at cs.usfca.edu
       
    Wed Apr 30 10:23:39 PDT 2008
    
    
  
youCan do that only one token references. are you sure it is on a rule  
reference and not a token reference in the book?
Ter
On Apr 30, 2008, at 7:38 AM, Steve O'Hara wrote:
> 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