On Wed, 2008-10-22 at 23:07 +0530, Sharath wrote:
> Jim Idle wrote:
> > On Wed, 2008-10-22 at 20:39 +0530, Sharath MS wrote:
> >> Hi,
> >> prog: stat+;
> >>
> >> stat:
> >> p+=SYM (',' p+=SYM )*
> >> -> printfoo(symbols={$p})
> >>
> >
> > Try $p.text
> >
> >
> > Jim
> Hi Jim,
>
> I tried $p.text and on running the python script, this was the result:
> AttributeError: 'list' object has no attribute 'text'.
Doh - I answered too quickly. You are passing a List to the string
template, so in the string template you need to iterate the collection
and get the text attribute of each member, using the separator you want.
Jim
--~--~---------~--~----~------------~-------~--~----~
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:8080/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address