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,80d7f9e085b0c566 X-Google-Attributes: gid103376,public From: jcn@swl.msd.ray.com (John Norcross {83602}) Subject: Re: Pretty Printer for Ada 95? Date: 1998/05/15 Message-ID: <6jhfmr$46j@swlpbb.msd.ray.com>#1/1 X-Deja-AN: 353516264 References: <4844e9d04bbellonsn@trick.informatik.uni-stuttgart.de> <6jc93b$k69@saturn.brighton.ac.uk> <6jfgsd$si3$1@cnn.Princeton.EDU> Organization: Raytheon Company Newsgroups: comp.lang.ada Date: 1998-05-15T00:00:00+00:00 List-Id: mcc@tyrolia.cs.princeton.edu (Martin C. Carlisle) writes: >In article <6jc93b$k69@saturn.brighton.ac.uk>, >John English wrote: >>Stefan Bellon (bellonsn@trick.informatik.uni-stuttgart.de) wrote: >>: Is there any Ada Pretty Printer for Ada 95 available which has all the >>: features that the NAPP (NASA Ada Pretty Printer) for Ada 83 has? >> >>Not as such AFAIK, but GnatIDE (ftp://ftp.bton.ac.uk/pub/je/gnide08.zip) >>includes a reformatter (Tools menu --> Reformat) which does a fairly >>basic job -- the source (in Delphi) is included, and the IDE itself >>runs under Win95/NT. Feel free to carve out the code and translate it >>into Ada, and send me a copy when you're done... ;-) >Another possibility is to get the reformatter from AdaGIDE (written in >Ada). I am unfamiliar with NAPP, but I imagine this is more limited. >See ftp://ftp.usafa.af.mil/pub/dfcs/carlisle/reformat/format.zip for >complete source. >--Martin >-- >Martin C. Carlisle, Computer Science, US Air Force Academy >mcc@cs.usafa.af.mil, http://www.usafa.af.mil/dfcs/bios/carlisle.html >DISCLAIMER: This content in no way reflects the opinions, standard or >policy of the US Air Force Academy or the United States Government. Yet another possibility is to use GRASP. It does a great job of adding optional line numbers, page numbers/heading, and control structure diagrams to your source. (I find the CSD's especially useful). It prints to postscript printers and allows you to choose what size font to utilize for both display and printing. Best of all, it is free and available on many platforms - both PC based and UNIX flavors. Although it is really more a development environment for GNAT (and a really good one!) than a pretty printer, it can be used as one on not only Ada but also C, C++, and Java source. (From either the command line or from within GRASP itself). Check it out here: http://www.eng.auburn.edu/department/cse/research/grasp/ Regards, John ------------------------------------------------------------------------ |John Norcross | EFOGM Huntsville | 205.772.4795 | jcn@swl.msd.ray.com | ------------------------------------------------------------------------ | "A touchstone to determine the actual worth of an 'intellectual' - | | find out how he feels about astrology." - Lazarus Long (RAH) | ------------------------------------------------------------------------