home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / prolog / 1690 < prev    next >
Encoding:
Internet Message Format  |  1992-09-11  |  2.0 KB

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