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]

Re: A question about tree-pretty-printing


On Mon, 28 Jun 2004, Paul Brook wrote:

| On Monday 28 June 2004 05:33, Gabriel Dos Reis wrote:
| > Jason,
| >
| >   Do front-ends expect a pretty-printing close to the source language
| > (e.g. Ada, C, C++, Fortran, Java, ...) or do they expect someting
| > close to C?
| >
| >   Currently, C and C++ front-ends have a pretty-printer; I don't know
| > of any other front-end that has similar functionality.
|
| The Fortran frontend doesn't use the tree pretty-printer. We generate all
| error messages before generating GENERIC trees. For debugging purposes I
| prefer the output look like C.

I think the consensus is that tree-pretty-printing looks C-like.

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.

-- Gaby


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