[cfe-dev] about AST of clang

Zhe Chen mr.zhechen at gmail.com
Fri Apr 13 02:42:54 PDT 2012

Hi Clang list,

I noticed there is an AST file format used for higher-level
representations of C codes under Clang.

What I want to do is make the parse trees of C programs, and then the
trees can be edited, e.g., insert new node, modify existing nodes,
etc. Finally, I want to compile these modified trees into executables.

Is it possible?  Moreso, is it practical?  I'd like to know where can
I find such examples or supporting features from clang.

Thanks for your patience and your thoughts,

-- Zhe

More information about the cfe-dev mailing list