This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
tree to source-code
- From: rost at lo-res dot org
- To: gcc at gcc dot gnu dot org
- Date: Tue, 2 Jul 2002 12:58:01 +0200 (CEST)
- Subject: tree to source-code
sorry for cross-posting but I got the impression gcc-help might not be the
list to discuss gcc internals. If in any way I'm wrong, I'm sorry for
that.
---------- Forwarded message ----------
Date: Mon, 1 Jul 2002 16:43:32 +0200 (CEST)
From: rost@lo-res.org
To: gcc-help@gcc.gnu.org
Subject: tree to source-code
Hi,
I am new to this list so please excuse any FAQ.
I was wondering if there is any module already included in the gcc-3.1
release to print C++-source code based on the internal tree data
structure (or any external projects working on this).
To make my idea more clear: What I am thinking about is to alter the
tree structure of a C++ source file (like adding statements,
renaming variables, whatever) and spitting out the whole tree as a
"human"-readable (as well as compilable) C++ code again.
Please note that readability is not the major factor, so I can live
without all stuff which got lost during preprocessing.
I am browsing the source of files like print-tree.c and tree-dump.c at the
moment without much luck, so any hints would be warmly welcome.
Thanks for any help,
Robert
---
GPG: gpg --keyserver wwwkeys.pgp.net --recv-keys CCFDEB89