From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a24b018d93ac1bc6,start X-Google-Attributes: gid103376,public From: Tony Vincent Subject: Ada 83 pretty printers Date: 1999/08/26 Message-ID: #1/1 X-Deja-AN: 517589482 X-NNTP-Posting-Host: avies.demon.co.uk:158.152.15.203 X-Trace: news.demon.co.uk 935701137 nnrp-02:15898 NO-IDENT avies.demon.co.uk:158.152.15.203 MIME-Version: 1.0 Newsgroups: comp.lang.ada X-Complaints-To: abuse@demon.net Date: 1999-08-26T00:00:00+00:00 List-Id: 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 then end if; or type is record : 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