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,e9f0eae6d714d11c X-Google-Attributes: gid103376,public From: mcc@tyrolia.cs.princeton.edu (Martin C. Carlisle) Subject: Re: Gnat pretty printing Date: 1998/12/10 Message-ID: <74on70$m9o$1@cnn.Princeton.EDU>#1/1 X-Deja-AN: 420991042 References: <74lt16$9r0@romeo.logica.co.uk> <366E9E44.AA7370C7@pwfl.com> Organization: US Air Force Academy, Dept of Computer Science Newsgroups: comp.lang.ada Date: 1998-12-10T00:00:00+00:00 List-Id: In article <366E9E44.AA7370C7@pwfl.com>, Marin David Condic wrote: >> Does anyone know if it is possible for my gnat ada compiler running under >> win95 pretty print? I.e. change font or use bold type for reserved words >> etc?? >> >So far as I know, GNAT itself does not do any pretty-printing. However, >you should have the AdaGide editor available with the WinNT release and >that has a "Format" button. (I don't particularly like the style of >formatting it does, but that's a personal preference sort of thing.) >There is also something called pc-Grasp which does a nice job of >editing/pretty-printing. It was available, I think, from Auburn >University. I don't have the URL at this time, so if you find it, please >post it. As it turns out, I have an independent study project slated for next semester to reimplement the reformatting tool in AdaGIDE. It is also available as a standalone tool, and will generate colorized RTF output. Suggestions for requirements are welcome, although I don't promise to have the same preferences you do :-). Send these to mcc@cs.usafa.af.mil AdaGIDE is distributed with GNAT on Windows, beginning with version 3.10p, but the latest AdaGIDE is found at http://www.usafa.af.mil/dfcs/bios/mcc_html/adagide.html The reformatter standalone is at: http://www.usafa.af.mil/dfcs/bios/mcc_html/ada_stuff.html Of course, the best way to implement such a tool would be with ASIS rather than modifying the sources of GNAT. We will NOT take this approach, however, because it is essential in our environment to be able to reformat code that will not compile, on a "as you go" basis during editing. --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.