Subject: Re: Pretty printing experts, pretty please?
From: rpw3@rpw3.org (Rob Warnock)
Date: Sat, 19 Apr 2008 19:34:59 -0500
Newsgroups: comp.lang.lisp
Message-ID: <FLOdnaTrD-guEpfVnZ2dnUVZ_jydnZ2d@speakeasy.net>
Mark Wooding  <mdw@distorted.org.uk> wrote:
+---------------
| John Thingstad <jpthing@online.no> wrote:
| > ftp://publications.ai.mit.edu/ai-publications/pdf/AIM-1102a.pdf
| 
| I had seen that (a while) before, but thanks for the reminder.
+---------------

You might also want to look at Chapter 1 of one of Waters's
earlier papers (August 1993):

    http://www.merl.com/reports/docs/TR93-17.pdf
    http://www.merl.com/papers/TR93-17/
    Richard Waters, "Some Useful Lisp Algorithms: Part 2"
    Chapter 1 "Using the New Common Lisp Pretty Printer"
    Chapter 2 "Macroexpand-All: An Example of a Simple Lisp Code Walker"
    Chapter 3 "To NReverse When Consing a List or By Pointer
	       Manipulation, To Avoid It; That Is the Question"

The blurb for Chapter 1 [in the 2nd URL] says:

    Chapter 1 "Using the New Common Lisp Pretty Printer" explains
    how the pretty printing facilities that have been adopted as
    part of the forthcoming Common Lisp standard can be used to gain
    detailed control over the printing of lists. As an example, it
    shows how the pretty printer can be used to print a subset of
    Lisp as Pascal.


-Rob

-----
Rob Warnock			<rpw3@rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607