[antlr-interest] Token Attributes in Arraylist

Alexander Gängel alexander at gaengel.de
Wed Mar 12 09:08:27 PDT 2008


Is use id+=Identifier+ in a rule in my treegrammar and was wondering if 
there is some "easy" way to get an arrayList of just the text of the 
token like $if.text

Ok it't not difficult to get  the stuff out of the CommonTree the 
CommonTree in the arrayList but I think it would be nice to get to the 
token Attributes in this way.

Alexander


More information about the antlr-interest mailing list