This is the mail archive of the gcc@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]

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


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