ST calls toString on the token list.
<identifiers:{ t | <t.name>}>
is probably more what you want
T
On Jul 21, 2009, at 8:33 AM, Vincent Dupuis 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
> de vos disques durs.
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe:
> http://www.antlr.org/mailman/options/antlr-interest/your-email-address
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
-~----------~----~----~----~------~----~------~--~---