Re: Approaches to code formatters

root@candle.pha.pa.us
7 Dec 2002 20:02:15 -0500

          From comp.compilers

Related articles
Approaches to code formatters pioter@terramail.CUTTHIS.pl (Piotr Zgorecki) (2002-12-01)
Re: Approaches to code formatters aka@mvps.org (Alex K. Angelopoulos) (2002-12-03)
Re: Approaches to code formatters nmh@t3x.org (Nils M Holm) (2002-12-03)
Re: Approaches to code formatters idbaxter@semdesigns.com (Ira Baxter) (2002-12-03)
Re: Approaches to code formatters root@candle.pha.pa.us (2002-12-07)
| List of all articles for this month |
From: root@candle.pha.pa.us
Newsgroups: comp.compilers
Date: 7 Dec 2002 20:02:15 -0500
Organization: Navpoint (navpoint.com)
References: 02-12-024
Keywords: tools
Posted-Date: 07 Dec 2002 20:02:15 EST

Piotr Zgorecki <pioter@terramail.cutthis.pl> wrote:
: Did anybody write a code formatter for C-like languages ? ...


On approach I have used is to convert your code keywords to be more
C-like, run a C indenter on it, then convert it back to your original
language.


I have used this for Informix 4GL, and even do pre/post processing for C
to change things I don't like about the indenter.


--
    Bruce Momjian | http://candle.pha.pa.us
    root@candle.pha.pa.us | (610) 359-1001
    + If your life is a hard drive, | 13 Roberts Road
    + Christ can be your backup. | Newtown Square, Pennsylvania 19073


Post a followup to this message

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