* The parse tree
@ 2005-10-07 22:31 Stefan
0 siblings, 0 replies; only message in thread
From: Stefan @ 2005-10-07 22:31 UTC (permalink / raw)
To: gcc-help
Hi!
I'd like to use the parse tree generated by g++, to build my own tree
for later processing. AFAIK there are two options:
1) Put myself somewhere in the process of parsing. Sadly I don't really
know where would that be. Is the tree of the whole translation unit
stored somewhere? Could you please give me a clue where should I look
for it?
2) Try to parse the result of -fdump-translation-unit. But even a
few-liner generates ~6000 lines of the dump file. Is there a way I could
reduce the output and get rid of built-in functions, etc.? It's quite
easy to guess what's what, but I'll be glad to see some specification of
the output. Is there a one available?
Thanks in advance,
Stefan Chrobot
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-10-07 22:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-07 22:31 The parse tree Stefan
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).