This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Accesssing the Abstract Syntax Tree
- From: Guy Montag <theguymontag at yahoo dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 17 Sep 2002 12:34:17 -0700 (PDT)
- Subject: Accesssing the Abstract Syntax Tree
If I wanted to compile source and obtain a complete
AST directly, how would one go about that? Any
recommendations on approach would be greatly
appreciated!
I am trying to build a code explorer that utilizes the
tree.
I have a pretty good knowledge of the compilation
process, and how yyparse() calls rest_of_compilation()
for each function. I get lost in all the different
variables, options, functions, and so on, and cannot
determine at what point to pull out a tree that would
be representative of the code, and even compilable
itself, by calling rest_of_compilation directly.
THANK YOU!
Sincerely,
-Guy
__________________________________________________
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com