home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!keele!csa09
- From: csa09@seq1.keele.ac.uk (Paul Singleton)
- Newsgroups: comp.lang.prolog
- Subject: Re: pretty printer
- Message-ID: <4053@keele.keele.ac.uk>
- Date: 11 Sep 92 13:58:40 GMT
- References: <1992Sep11.091413.676@tom.rz.uni-passau.de>
- Organization: University of Keele, England
- Lines: 30
-
- From article <1992Sep11.091413.676@tom.rz.uni-passau.de>, by baier@forwiss.uni-passau.de (Joern Baier):
-
- > As the subject says it I'm looking for a pretty printer.
- > It should read a source code and write it down in a nicer format.
- > It should also be able to deal with comments and keep the vaiable
- > names. I have been looking for it in the libraries but I think there is
- > nothing appropriate.
-
- I want a pretty-printer wherein I can implement my own preferred layout of
- source code. I think this requires a full parser which keeps variable
- names *and* the whitespace (and comments) which are adjacent to each token.
- I'd be thrilled if someone put one in the public domain.
-
- I think I could make Prolog source code more readable by using different
- fonts, or font variations (I mean bold, italic etc.), and by using subscripts
- for related variables, e.g. p(Cs0, Cs1). In fact I am fed up with using
- ASCII for my programs when I can use lotsa goodies (some say too many :-)
- to make my other writings more readable. Have you noticed how Pascal text
- books often use *bold* for the reserved words, erroneously suggesting that
- they are distinct e.g. in the way that Algol 68 keyword symbols were. Tut.
-
- So in future I shall compose my Prolog source files using FrameMaker or
- some such. As long as all I/O (including that of the debugger) is user-
- -configurable, I should be able to preserve the illusion of a Prolog system
- which converses in a script much richer than ASCII. Any takers?
- ----
- __ __ Paul Singleton (Mr) JANET: paul@uk.ac.keele.cs
- |__) (__ Computer Science Dept. other: paul@cs.keele.ac.uk
- | . __). Keele University, Newcastle, tel: +44 (0)782 621111 x7355
- Staffs ST5 5BG, ENGLAND fax: +44 (0)782 713082
-