Possible Duplicate:
How to output the AST built using ANTLR?
Is there a way to transform my lexer and parser definition files (.g)
to a CommonTree? (During the process where my parsergenerator is created)
I dont want to use my generated parser. I want the natural antlr parser (which parses lexer and parser definition files) to spit me out a CommonTree object.
Sure, it’s available here: http://www.antlr.org/grammar/ANTLR/
Posted below to prevent possible link-rot: