home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!comlab.ox.ac.uk!oxuniv!popx
- From: popx@vax.oxford.ac.uk
- Newsgroups: comp.lang.prolog
- Subject: Re: pretty printer
- Message-ID: <1992Sep11.171857.8814@vax.oxford.ac.uk>
- Date: 11 Sep 92 16:18:56 GMT
- References: <1992Sep11.091413.676@tom.rz.uni-passau.de> <4053@keele.keele.ac.uk>
- Organization: Oxford University VAX 6620
- Lines: 44
-
- In article <4053@keele.keele.ac.uk>, csa09@seq1.keele.ac.uk (Paul Singleton) writes:
- > 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.
- >
- See my previous posting (two messages earlier). You will need to do some
- work on the parser and tokeniser, but I think I'm entitled to allow you
- to grin a bit, at least. Post me a copy when you've finished.
-
-
- > 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
- >
- About two years ago, someone posted a message about "Literate Prolog".
- They had written a Prolog equivalent of Web, and offered to put it in
- a central repository, should anyone provide space. I tried to get in
- touch with the author, but couldn't (mailer problems?). If, Mr.
- Literate Prolog, you are reading this, then perhaps you could contact
- me, and I'll add the code to my library. I think your address was
- something like steve!kelem!xilinx...
-
-
- Jocelyn Paine
-