Re: Tools to "prettify" source code

Hans-Bernhard Broeker <>
10 Apr 2001 01:19:44 -0400

          From comp.compilers

Related articles
[2 earlier articles]
Re: Tools to "prettify" source code (Pekka Enberg) (2001-03-31)
Re: Tools to "prettify" source code (Eliot Miranda) (2001-04-04)
Re: Tools to "prettify" source code (Burkhard Perkens-Golomb) (2001-04-04)
Re: Tools to "prettify" source code (Eric Brown) (2001-04-04)
Re: Tools to "prettify" source code (2001-04-10)
Re: Tools to "prettify" source code (Ira D. Baxter) (2001-04-10)
Re: Tools to "prettify" source code (Hans-Bernhard Broeker) (2001-04-10)
Re: Tools to "prettify" source code (Michael Stumpfl) (2001-04-10)
| List of all articles for this month |

From: Hans-Bernhard Broeker <>
Newsgroups: comp.compilers
Date: 10 Apr 2001 01:19:44 -0400
Organization: Aachen University of Technology (RWTH)
References: 01-03-155 01-04-024
Keywords: tools
Posted-Date: 10 Apr 2001 01:19:44 EDT
Originator: broeker@

Eric Brown <> wrote:
> says...

> Along the same lines, I've been looking for something similar to the
> old Unix program tgrind or vgrind - you feed it source code, and out
> pops a beautifully formatted document ready to print, in TeX or
> (preferably) PostScript.

Then you sure should give GNU enscript a try. It's an ASCII-to-PS tool
at first sight, but it also knows how to process C and quite some
other languages. Nothing overly fancy --- it's based on regexp's, and
we all know that regexp's aren't powerful enough to fully grasp the
syntax of C --- but it works nicely, most of the time.

> programming tools and documentation tools, but for doing a code
> review, nothing beats a nicely formatted printout.

I'd say a good online analysis tools should be able to beat it, but
that's personal preference...

> [What's wrong with vgrind? It's still around. -John]

Right, but it also has some problems. At least the version I've been
using needs a special layout of function heads to be able to find
them. It's not very nice having to reformat the sources you're trying
to review, just to get a fully functional printout. And you can
easily confuse it to kingdom come with a multiline macro definition,
Hans-Bernhard Broeker (

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.