[comp.lang.prolog] Prolog Pretty-Printer

stiles@aurora.laic.uucp (Randy Stiles) (09/06/89)

	In the C programming world, there exist many utilities to
beautify, or pretty-print source code, keeping comments and such
intact, but correctly indenting code blocks and generally making the
code much easier to read.

	I have yet to find such a utility for Prolog (Quintus Prolog
preferably), and I want one. Most Prolog environments have a clause
with which you can get a listing of any of your defined predicates,
without any comments.  This is not helpful.  It does not address a
source file as a whole, nor does it keep comments.

	So I am posting a request for information about any existing
pretty-printing utilities before I go off and write my own.  It would
seem that such a thing should exist.  Prolog's forte is the handling
of languages, via Definite Clause Grammars (DCG's), and parsing a file
of Prolog clauses to identify the components (for proper indentation)
is a plausible task.  I just think someone has to have done it
already.

	Thanks in advance for any replies I may receive.
    -====---====-
   -=--=---=----
  -====---====-
 -=-=-------=-