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

Roy Metzger antlrmen at yahoo.com
Sun Jul 31 07:32:48 PDT 2011


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!


More information about the antlr-interest mailing list