[antlr-interest] Help on template rewrite
Vincent Dupuis
vincedupuis at hotmail.com
Tue Jul 21 08:33:57 PDT 2009
Hi,
I need help on how to rewrite a rule to a fill a template with a list of tokens.
The rule:
identList
: i+=IDENT (',' i+=IDENT)*
-> identifierList(identifiers={$i})
;
returns:
[@17,102:106='ident1',<4>,10:17][@19,109:112='ident2',<4>,10:24]
when using <identifiers> in a template group.
How can I do it properly?
_________________________________________________________________
Attention à tous les Humains. Nous sommes vos photos. Libérez-nous de vos disques durs.
http://go.microsoft.com/?linkid=9666050
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090721/1a722251/attachment.html
More information about the antlr-interest
mailing list