[antlr-interest] getting text out of multiple nodes (noob question)

Jim Idle jimi at temporal-wave.com
Sun Jul 31 10:36:15 PDT 2011


http://markmail.org/message/ti67rwlidviadmp2


> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of Roy Metzger
> Sent: Sunday, July 31, 2011 7:33 AM
> To: antlr-interest at antlr.org
> Subject: [antlr-interest] getting text out of multiple nodes (noob
> question)
>
> Please forgive me for asking such question, but I what is easiest way
> of getting text from multiple nodes?
> When I have in a rule something like id+=ID, how do I get text of all
> id nodes. Is it returned as List of Strings, or do I cycle in a for
> loop getting text out of each node,or there is some other way ?
>
> Thanks for answer, and sorry for such "newbie" question!
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-
> email-address


More information about the antlr-interest mailing list