* Pretty Printer for Ada 95? @ 1998-05-12 0:00 Stefan Bellon 1998-05-13 0:00 ` John English 0 siblings, 1 reply; 6+ messages in thread From: Stefan Bellon @ 1998-05-12 0:00 UTC (permalink / raw) Hello all! 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? TIA! Greetings, -- _____ _____ ____ ____ ____ _ _ | ___/_ _| __| __/ __ | \| | Stefan Bellon mailto:sbellon@gmx.de |___ | | | | __| __| __ | | /_____| |_| |____|_| |_||_|_|\_| Acorn RiscPC * StrongARM 202Mhz * 50 MB RAM 10,000 ants dressed as rice & robbed a Chinese restaurant ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Pretty Printer for Ada 95? 1998-05-12 0:00 Pretty Printer for Ada 95? Stefan Bellon @ 1998-05-13 0:00 ` John English 1998-05-14 0:00 ` Martin C. Carlisle 1998-05-22 0:00 ` TConiam 0 siblings, 2 replies; 6+ messages in thread From: John English @ 1998-05-13 0:00 UTC (permalink / raw) 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... ;-) NAPP itself is written in Pascal as I recall... ----------------------------------------------------------------- John English | mailto:je@brighton.ac.uk Senior Lecturer | http://www.it.bton.ac.uk/staff/je Dept. of Computing | ** NON-PROFIT CD FOR CS STUDENTS ** University of Brighton | -- see http://burks.bton.ac.uk ----------------------------------------------------------------- ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Pretty Printer for Ada 95? 1998-05-13 0:00 ` John English @ 1998-05-14 0:00 ` Martin C. Carlisle 1998-05-15 0:00 ` John Norcross {83602} 1998-05-22 0:00 ` TConiam 1 sibling, 1 reply; 6+ messages in thread From: Martin C. Carlisle @ 1998-05-14 0:00 UTC (permalink / raw) In article <6jc93b$k69@saturn.brighton.ac.uk>, John English <je@bton.ac.uk> 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. ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Pretty Printer for Ada 95? 1998-05-14 0:00 ` Martin C. Carlisle @ 1998-05-15 0:00 ` John Norcross {83602} 0 siblings, 0 replies; 6+ messages in thread From: John Norcross {83602} @ 1998-05-15 0:00 UTC (permalink / raw) mcc@tyrolia.cs.princeton.edu (Martin C. Carlisle) writes: >In article <6jc93b$k69@saturn.brighton.ac.uk>, >John English <je@bton.ac.uk> 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) | ------------------------------------------------------------------------ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Pretty Printer for Ada 95? 1998-05-13 0:00 ` John English 1998-05-14 0:00 ` Martin C. Carlisle @ 1998-05-22 0:00 ` TConiam 1998-05-23 0:00 ` Stefan Bellon 1 sibling, 1 reply; 6+ messages in thread From: TConiam @ 1998-05-22 0:00 UTC (permalink / raw) >NAPP itself is written in Pascal as I recall... The NASA Ada Pretty Printer is written in Ada83. I can try to dig out the source. I do remember that there was an unsupplied tool used to create the state transition tables used in the parser. NAPP may be a start for an Ada95 Pretty Printer, but then so would the parser in GNAT. And GNAT is better documented and current! Todd Coniam ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Pretty Printer for Ada 95? 1998-05-22 0:00 ` TConiam @ 1998-05-23 0:00 ` Stefan Bellon 0 siblings, 0 replies; 6+ messages in thread From: Stefan Bellon @ 1998-05-23 0:00 UTC (permalink / raw) In article <1998052200254300.UAA22515@ladder01.news.aol.com>, TConiam <tconiam@aol.com> wrote: > The NASA Ada Pretty Printer is written in Ada83. I can try to dig > out the source. I do remember that there was an unsupplied tool used > to create the state transition tables used in the parser. NAPP may > be a start for an Ada95 Pretty Printer, but then so would the parser > in GNAT. And GNAT is better documented and current! Can you tell me more? How do I make use of the parser in GNAT for formatting the source code? TIA. Greetings, -- _____ _____ ____ ____ ____ _ _ | ___/_ _| __| __/ __ | \| | Stefan Bellon mailto:sbellon@gmx.de |___ | | | | __| __| __ | | /_____| |_| |____|_| |_||_|_|\_| Acorn RiscPC * StrongARM 202Mhz * 50 MB RAM WOMAN.ZIP - Great program but no documentation. ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1998-05-23 0:00 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 1998-05-12 0:00 Pretty Printer for Ada 95? Stefan Bellon 1998-05-13 0:00 ` John English 1998-05-14 0:00 ` Martin C. Carlisle 1998-05-15 0:00 ` John Norcross {83602} 1998-05-22 0:00 ` TConiam 1998-05-23 0:00 ` Stefan Bellon
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox