public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* How do I print a tree?
@ 2000-04-08 10:24 Christian Baxmann
  2000-04-08 10:55 ` Martin v. Loewis
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Baxmann @ 2000-04-08 10:24 UTC (permalink / raw)
  To: gcc

Hi there!
I'd like to know how to print a tree (AST), generated by the g++-Front-End.

I don't know if gcc/g++ can do that by themself (via compiler options) or
somehow
have to be inctructed to do so.

There are several print-routines (print_node, print_lang_identifier,
print_lang_type etc.),
but I can't figure out where in gcc/g++ they are used to print a tree (AST).
I searched and
tried to understand the source code, but still can't say where to "activate"
or integrate it.

There has to be a routine that walks through the tree. So, my idea by now is
to use
the print_node-routine (in gcc/print-tree.c) for each node it "walks
trough".
But I guess there is a more simple or allready integrated routine in gcc/g++
that I can't find.

Hopefully yours
Christian Baxmann

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-04-08 10:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-04-08 10:24 How do I print a tree? Christian Baxmann
2000-04-08 10:55 ` Martin v. Loewis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).