[antlr-interest] Error in "rewriteTokenRef" template
Terence Parr
parrt at cs.usfca.edu
Tue Mar 13 13:27:46 PDT 2007
Hi Gang,
In bug list:
http://www.antlr.org:8888/browse/ANTLR-86
> Thanks for he workaround. I (hopefully) fixed the bug in “AST.stg”.
> I changed the rule to read
>
>
>
> /** Gen ID */
>
> rewriteTokenRef(args,token,elementIndex) ::= <<
>
> adaptor.addChild(root_<treeLevel>, <if(args)>adaptor.create
> (<token>, <args; separator=", ">)<endif><if(!args)>(<labelType>)
> list_<token>.get(i_<rewriteBlockLevel>)<endif>);<\n>
>
> >>
That does look correct. pushed/fixed.
Ter
More information about the antlr-interest
mailing list