Repository logo
Log in(current)
Repository logoMIT Open ScholarshipDSpace@MIT
  1. Home
  2. Computer Science and Artificial Intelligence Lab (CSAIL)
  3. Artificial Intelligence Lab Publications
  4. AI Memos (1959 - 2004)
  5. PP: A LISP Pretty Printing System

PP: A LISP Pretty Printing System

Thumbnail Image
Download
Name

AIM-816.pdf

Size

4.95 MB

Format

Adobe PDF

Checksum (MD5)

e69c763473a04db5f27d3c600b7ec82f

Thumbnail Image
Download
Name

AIM-816.ps

Size

6.31 MB

Format

PostScript

Checksum (MD5)

51e63f7672c882090add0aa80d686c3c

Author(s)
Waters, Richard C.
Date Issued
December 1, 1984
Series/Report no.
AIM-816
Abstract
The PP system provides an efficient implementation of the Common Lisp pretty printing function PPRINT. In addition, PP goes beyond ordinary pretty printers by providing mechanisms which allow the user to control the exact form of pretty printed output. This is done by extending LISP in two ways. First, several new FORMAT directives are provided which support dynamic decisions about the placement of newlines based on the line width available for output. Second, the concept of print-self methods is extended so that it can be applied to lists as well as to objects which can receive messages. Together, these extensions support pretty printing of both programs and data structures. The PP system also modifies the way that the Lisp printer handles the abbreviation of output. The traditional mechanisms for abbreviating lists based on nesting depth and length are extended so that they automatically apply to every kind of structure without the user having to take any explicit action when writing print-self methods. A new abbreviation mechanism introduced which can be used to limit the total number of lines printed.
Persistent DSpace Link
http://hdl.handle.net/1721.1/6420
Repository logo
PrivacyPermissionsAccessibilityContact us
Repository logo
Notify us about copyright concerns.