This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: A question about tree-pretty-printing
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: gdr at cs dot tamu dot edu
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 28 Jun 04 14:15:09 EDT
- Subject: Re: A question about tree-pretty-printing
I think the consensus is that tree-pretty-printing looks C-like.
I agree with that as well
As for diagnostics, I think I'll stick to C, C++, Java -- but encourage
other front-ends maintainers to share infrastructure with the main
diagnostic and pretty-printing machinery.
I think it's harder than it seems. pretty-printing seems intrinsically
language-dependent, so I don't see a way to share that if the idea is to
write in the syntax of the other language. As far as diagnostics, I
agree that some sharing is good, but often the other language will have
an entirely different internal tree structure than that GCC tree and
it's usually most beneficial for good error message generation to do so
from those trees.