[antlr-interest] unexpected token when AST rewrite is used
    Bernardo Elayda 
    belayda at gmail.com
       
    Fri Jun 13 00:58:21 PDT 2008
    
    
  
Hi,
Why does Antlr 3.0.1 complain that a token is unexpected for the rule called
B which has a single argument:
a : b[0]+ -> ^(MYPROGRAM b[0]+)
   ;
I can only get Antlr to accept the above rule if I do this:
a : b[0] -> ^(MYPROGRAM b+)
Are rules with arguments not allowed as child nodes in an Antlr AST?
tia,
Bernardo Elayda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080613/37313757/attachment.html 
    
    
More information about the antlr-interest
mailing list