You are acumuating the tokens, which is fine but in the template you need <it.text>
Or create the template manually and set the formal parameter as you go. $st = %identifierList(); Etc... Jim On Jul 21, 2009, at 5:33 AM, Vincent Dupuis <[email protected]> wrote: > 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:1...@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 d > e vos disques durs. > > List: http://www.antlr.org/mailman/listinfo/antlr-interest > Unsubscribe: > http://www.antlr.org/mailman/options/antlr-interest/your-email-address --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en -~----------~----~----~----~------~----~------~--~---
List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
