This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Preparatory PATCH for pretty-print
- From: Devang Patel <dpatel at apple dot com>
- To: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 29 Jul 2002 22:04:34 -0700
- Subject: Re: Preparatory PATCH for pretty-print
On Monday, July 29, 2002, at 06:06 PM, Gabriel Dos Reis wrote:
Devang Patel <dpatel@apple.com> writes:
| Is there any place where I can look to find some info. about
| pretty-printing ?
Hmm, I don't think there is any place in the GCC documentation where
pretty-printing (in the front-ends) is mentioned -- although it's done
in various forms for the RTL.
I hope you will add some info. when you are done.
| I want to know what is pretty-printing ?
What I'm doing is just to render the tree-representation (built by
the C or C++ front-ends) into a human readable form -- usually as a
GNU C/C++ program constructs.
The goal actually is two-fold: (1) make it possible to visualize the
effects of various tree-level transformations on program sources;
(2) improve the C/C++ diagnostics reporter.
Mike Stump explained me what it is and it's primary use (2).
But, I am more interested in (1) goal.
| My initial impression is that it will beautify source, though I may
be
| totally wrong.
Well, the intent isn't to build an "indent"-clone into GCC although
That's what I was afraid of, hence I asked the question.
I'll try hard to make the output the "best" readable as possible.
Future works include "styles" -- but I have enought for the time being
:-)
:-)
| On Monday, July 29, 2002, at 12:36 PM, Gabriel Dos Reis wrote:
|
| > This patch prepares for pretty-printing in the C and C++ front-end.
|
| I hope, you are also planning to include Objective-C.
Well, Objective-C isn't currently on my radar-screen but if you think
there are opportunities to reuse what I'm doing for the C/C++
front-ends then, please just submit a patch.
I will play with what you've added in C/C++ and add Objective-C stuff
whenever I get chance.
Thank you,
-Devang