From: Rolf Ebert <re@waporo.muc.de>
Subject: Re: Ada95 Pretty-Printers
Date: 1997/06/11
Date: 1997-06-11T00:00:00+00:00 [thread overview]
Message-ID: <m2u3j5yorw.fsf@waporo.muc.de> (raw)
In-Reply-To: 339C58A6.4D5A@sprintmail.com
>>>>> "JGV" == John G Volan <johnvolan@sprintmail.com> writes:
JGV> Are there any batch pretty-printers out there (commercial or free)
JGV> that can do syntax-level indenting while still respecting the
JGV> user's line-breaks? Or even better, are there any pretty-printers
JGV> that can actively reformat, but which are customizable, maybe using
JGV> syntax templates? (For instance, if one of our programmers forgets
JGV> to put a "then" on a separate line, we'd rather have a tool that
JGV> could automatically move it for him, rather than beat him up in a
JGV> walkthrough for something as trivial as code format.)
The answer to almost any question is Emacs. Emacs can do everything :-)
Look at the emacs-ada-mode package at cs.ny.edu:/pub/gnat. In its
contrib directory there is a short file which uses Emacs in batch mode
for reindenting files. The documentation explains the user options
which control indenting. The current Emacs-reformatter never changes
newlines, though. But you have the sources and can of course adapt it
to your needs. I admit, it is very slow.
Try to do that with vi.
Rolf
ebert@waporo.muc.de
next prev parent reply other threads:[~1997-06-11 0:00 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <339C58A6.4D5A@sprintmail.com>
1997-06-10 0:00 ` Ada95 Pretty-Printers Anonymous
1997-06-10 0:00 ` John G. Volan
1997-06-10 0:00 ` Samuel Mize
1997-06-10 0:00 ` stuman
1997-06-10 0:00 ` John G. Volan
1997-06-11 0:00 ` Samuel Mize
1997-06-12 0:00 ` Robert Dewar
1997-06-12 0:00 ` John G. Volan
1997-06-13 0:00 ` Samuel Mize
1997-06-14 0:00 ` Robert Dewar
1997-06-14 0:00 ` Samuel Mize
1997-06-14 0:00 ` Robert Dewar
1997-06-14 0:00 ` Tom Phinney
1997-06-10 0:00 ` John G. Volan
1997-06-10 0:00 ` Spam Hater
1997-06-10 0:00 ` Spam Hater
1997-06-16 0:00 ` Greg Gicca @pulsar
1997-06-11 0:00 ` Rolf Ebert [this message]
1997-06-11 0:00 ` John G. Volan
1997-06-11 0:00 ` Matthew Heaney
1997-06-12 0:00 ` Jeff Burns
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox