[antlr-interest] How to walk AST tree

ytriffy ytriffy at gmail.com
Fri Mar 21 12:15:01 PDT 2008


Hi, all.
I need to walk ast tree that was produced for java 5 source code.
And basicly I need to get method names and variable names from it(and 
maybe imports).
So what I/m trying to do is to get this structure:
0                                classname
1 variables array   methods array   imports array
I'm not very familiar with ast api. What is the most simple way to do this?


More information about the antlr-interest mailing list