[antlr-interest] += Output Option clarification

bryce.alcock at sungard.com bryce.alcock at sungard.com
Tue Apr 3 09:57:54 PDT 2007


I get the following error in my TreeWalker Grammar file:

error(134): ExprWalker.g:43:14: rule '+=' list labels are not allowed w/o 
output option: lids

I noticed the release notes state the following:
-----------------------------------------------------------------------------------------------
>From the Antlr v3 early access release notes at:
http://www.antlr.org/v3/README.txt

January 1, 2007

* += labels for rules only work for output option; previously elements
  of list were the return value structs, but are now either the tree or
  StringTemplate return value.  You can label different rules now
  x+=a x+=b.
------------------------------------------------------------------------------------------------



Here is what i am trying to do:

compoundExpr returns [int value] :
        ^(COMPOUND (lids+=condExpr)+ )
        { 
                             ..........
                };



Can I get some clarification or direction about what I should try to do 
in this situation.


Thanks in advance
Bryce
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070403/fbfe6c56/attachment-0001.html 


More information about the antlr-interest mailing list