Related articles |
---|
Tools to "prettify" source code michael.stumpfl@jkh.uni-linz.ac.at (Michael Stumpfl) (2001-03-28) |
Re: Tools to "prettify" source code idbaxter@semdesigns.com (Ira D. Baxter) (2001-03-31) |
Re: Tools to "prettify" source code viola@pp.htv.fi (Pekka Enberg) (2001-03-31) |
Re: Tools to "prettify" source code eliotm@pacbell.net (Eliot Miranda) (2001-04-04) |
Re: Tools to "prettify" source code perkens@sdm.de (Burkhard Perkens-Golomb) (2001-04-04) |
Re: Tools to "prettify" source code ericbr@oz.net (Eric Brown) (2001-04-04) |
Re: Tools to "prettify" source code marcov@toad.stack.nl (2001-04-10) |
Re: Tools to "prettify" source code idbaxter@semdesigns.com (Ira D. Baxter) (2001-04-10) |
Re: Tools to "prettify" source code broeker@physik.rwth-aachen.de (Hans-Bernhard Broeker) (2001-04-10) |
Re: Tools to "prettify" source code michael.stumpfl@jkh.uni-linz.ac.at (Michael Stumpfl) (2001-04-10) |
From: | Eliot Miranda <eliotm@pacbell.net> |
Newsgroups: | comp.compilers |
Date: | 4 Apr 2001 00:15:01 -0400 |
Organization: | SBC Internet Services |
References: | 01-03-155 01-03-158 |
Keywords: | tools |
Posted-Date: | 04 Apr 2001 00:15:01 EDT |
"Ira D. Baxter" wrote:
>
> Our DMS Reengineering Toolkit parses arbitrary langauges ("domains"),
> builds ASTs (capturing all the lexical source information such as
> comments, number formats, etc.), can apply source-to-source
> transformations to the trees, and finally prettyprint the result.
> This is driven by a "domain definition" including a grammar and
> prettyprinting rules.
What approach(es) do you take towards comments? Many comment forms seem
to cause problems with pretty printing. For example
if (expr) { /* first line of */
doSomething(); /* of a multi-line comment */
} /* split across multiple lines */
is this one comment or three? Which parse nodes is/are the comment/s
attached to?
Many Smalltalks have a pretty printer but I've yet to see one that
handled comments well.
--
_______________,,,^..^,,,____________________________
Eliot Miranda Smalltalk - Scene not herd
Return to the
comp.compilers page.
Search the
comp.compilers archives again.