This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Interface for manipulating the abstract syntax tree
- From: "Ferad Zyulkyarov" <feradz at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 5 Dec 2006 10:22:21 +0100
- Subject: Interface for manipulating the abstract syntax tree
Hi,
I try to change the front-end tree structure of a c/c++ program as a
side effect of execution of a pragma. The operations that are involved
is to walk through in a tree (i.e "C" block), insertion of a tree
(i.e. statement, block, declaration) in the abstract syntax tree and
deletion of a tree (i.e. statement, block, declaration).
I am quite new to the gcc code and I could only find that the function
add_stmt(tree) inserts a statement.
I suppose that a lot of gcc developers here doing this routinely. I
would appreciate your help and advices a lot.
Thanks in advance,
Ferad Zyulkyarov
Barcelona Supercomputing Center