This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]