[antlr-interest] how to get hold of individual nodes in a tree parser

Benjamin Shropshire shro8822 at vandals.uidaho.edu
Mon Feb 25 17:00:38 PST 2008


I have a tree grammar  with a rule like this:

name : ^(NAME name_literal+) { ; }

I need to do a foreach over the name_literal nodes but I can't seem to 
find anywhere in the manual that inserts action rules for repeated nodes 
in a tree parser. Anyone known how to do this?


More information about the antlr-interest mailing list