comp.lang.ada
 help / color / mirror / Atom feed
* Ada 83 pretty printers
@ 1999-08-26  0:00 Tony Vincent
  1999-08-26  0:00 ` David C. Hoos, Sr.
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Tony Vincent @ 1999-08-26  0:00 UTC (permalink / raw)


Hi there, and thanks for reading my first posting.

I'm sure this is something which has cropped up before, but I am
currently working on a project which BADLY needs an Ada source code
formatter for Ada 83 code.  Can anybody point me in the direction of a
formatter with the following properties...?

1. Must be supplied as source code - it will be used on a secure system,
hence no downloaded executables allowed.  We use the Dec Ada compiler,
so Ada'83 only, but also have the Dec Pascal compiler available.
Gnat is not available due to restrictions on the source of executables
on our secure network.

2. Must have the ability to be customised, because some of the coding
standards on this project are a little odd.
e.g.
     if <expression>                  
     then  
        <code>                            
     end if;

or 
     type <type_mark> is
     record
        <component> : <component_type>
     end record;

Also, parameters, record components, "in out" etc. must align
vertically.

3. Must be able to handle the full language.  All of the ones I've
managed to get working so far fail in some area, usually instantiations
of generics, where they try to indent following a declaration such as 
       package MY_MATH is new MATH_LIB(float);




The most promising one I've found so far is the USAF ADAFMT2 (written in
Pascal!) but this mucks up the indentation following the instantiation
of generic packages, doesn't like representation clauses, and only
splits expressions (gobbled symbols) over lines if it can't fit them
onto a single line - hence no vertical alignment of parameters etc.
If I can't find anything better in the Ada world then I might just have
to start brushing up on my Pascal.

There appear to be some good formatters for Gnat, but I can't install
the gnat compiler because of the restrictions on the use of downloaded
executables.  Others I've tried include Napp, FORMAT2, a couple from the
Walnut Creek cdrom site, and one from Stuttgart university which proved
to be incomplete.


Any help will be greatly appreciated.
-- 
Tony V




^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~1999-09-03  0:00 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-08-26  0:00 Ada 83 pretty printers Tony Vincent
1999-08-26  0:00 ` David C. Hoos, Sr.
1999-09-02  0:00   ` Tony Vincent
1999-09-02  0:00     ` Larry Kilgallen
1999-09-03  0:00       ` Robert Dewar
1999-09-02  0:00     ` Tucker Taft
1999-08-26  0:00 ` Marin David Condic
1999-08-26  0:00 ` Larry Kilgallen
1999-08-27  0:00 ` Simon Wright
1999-09-03  0:00   ` Robert Dewar
1999-09-03  0:00 ` Robert Dewar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox