lispdoc - results for pprint |
(pprint object &optional stream) | Function: Prettily output OBJECT preceded by a newline.
|
| Mentioned in: CLtL2 - 22.3.1. Output to Character Streams CLtL2 - 27.3. Dynamic Control of the Arrangement of Output CLtL2 - 27.6. Pretty Printing Dispatch Tables CLtL2 - 28.2. Functions in the Programmer Interface CLtL2 - A.2.5. Collectors HyperSpec - Function WRITE, PRIN1, PRINT, PPRINT, PRINC On Lisp - Testing Macroexpansion PCL - file output | |
(print object &optional stream) | Function: Output a newline, the mostly READable printed representation of OBJECT, and space to the specified STREAM.
|
Example:(defun simplifier () "Read a mathematical expression, simplify it, and print the result." (loop (print 'simplifier>) (print (simp (read))))) | Mentioned in: CLtL2 - 10.2. The Print Name CLtL2 - 12.9. Random Numbers CLtL2 - 20.2. The Top-Level Loop CLtL2 - 21.1. Standard Streams CLtL2 - 22.1. Printed Representation of Lisp Objects CLtL2 - 22.1.3. Macro Characters CLtL2 - 22.3.1. Output to Character Streams CLtL2 - 25.3. Debugging Tools CLtL2 - 27.3. Dynamic Control of the Arrangement of Output CLtL2 - 28.2. Functions in the Programmer Interface CLtL2 - 29.2. Changes in Terminology CLtL2 - 3. Scope and Extent CLtL2 - 5.3.3. Control of Time of Evaluation CLtL2 - 7.11. Dynamic Non-Local Exits CLtL2 - A.2.5. Collectors HyperSpec - 22.2.1.4 Pretty Print Dispatch Tables HyperSpec - Function WRITE, PRIN1, PRINT, PPRINT, PRINC On Lisp - Adding Prolog Features On Lisp - An Interpreter On Lisp - Chapter _28 On Lisp - Destructuring in Parameter Lists On Lisp - Extending Lisp On Lisp - New Implementation On Lisp - Other Structures On Lisp - When Capture Occurs PCL - breaking open the black box PCL - file output PCL - formatting lisp code PCL - other kinds of io PCL - reading file data PCL - saving and loading the database PCL - vectors Successful Lisp - chapter05 Successful Lisp - chapter09 Successful Lisp - chapter19 Successful Lisp - chapter30 Successful Lisp - lesson 11 Successful Lisp - tail recursion |
(pprint-tab kind colnum colinc &optional stream) | Function: If STREAM (which defaults to *STANDARD-OUTPUT*) is a pretty-printing stream, perform tabbing based on KIND, otherwise do nothing. KIND can be one of: :LINE - Tab to column COLNUM. If already past COLNUM tab to the next multiple of COLINC. :SECTION - Same as :LINE, but count from the start of the current section, not the start of the line. :LINE-RELATIVE - Output COLNUM spaces, then tab to the next multiple of COLINC. :SECTION-RELATIVE - Same as :LINE-RELATIVE, but count from the start of the current section, not the start of the line.
|
| Mentioned in: CLtL2 - 27.3. Dynamic Control of the Arrangement of Output HyperSpec - Function PPRINT-TAB | |
(pprint-pop) | Function: Return the next element from LIST argument to the closest enclosing use of PPRINT-LOGICAL-BLOCK, automatically handling *PRINT-LENGTH* and *PRINT-CIRCLE*. Can only be used inside PPRINT-LOGICAL-BLOCK. If the LIST argument to PPRINT-LOGICAL-BLOCK was NIL, then nothing is popped, but the *PRINT-LENGTH* testing still happens.
|
| Mentioned in: CLtL2 - 27.3. Dynamic Control of the Arrangement of Output CLtL2 - 27.4. Format Directive Interface HyperSpec - Local Macro PPRINT-POP | |
(pprint-fill stream list &optional (colon? t) atsign?) | Function: Output LIST to STREAM putting :FILL conditional newlines between each element. If COLON? is NIL (defaults to T), then no parens are printed around the output. ATSIGN? is ignored (but allowed so that PPRINT-FILL can be used with the ~/.../ format directive.
|
| Mentioned in: CLtL2 - 27.3. Dynamic Control of the Arrangement of Output CLtL2 - 27.4. Format Directive Interface CLtL2 - 27.6. Pretty Printing Dispatch Tables HyperSpec - Function PPRINT-FILL, PPRINT-LINEAR, PPRINT-TABULAR | |
(pprint-indent relative-to n &optional stream) | Function: Specify the indentation to use in the current logical block if STREAM (which defaults to *STANDARD-OUTPUT*) is a pretty-printing stream and do nothing if not. (See PPRINT-LOGICAL-BLOCK.) N is the indentation to use (in ems, the width of an ``m'') and RELATIVE-TO can be either: :BLOCK - Indent relative to the column the current logical block started on. :CURRENT - Indent relative to the current column. The new indentation value does not take effect until the following line break.
|
| Mentioned in: CLtL2 - 27.1. Introduction CLtL2 - 27.3. Dynamic Control of the Arrangement of Output HyperSpec - Function PPRINT-INDENT | |
(pprint-linear stream list &optional (colon? t) atsign?) | Function: Output LIST to STREAM putting :LINEAR conditional newlines between each element. If COLON? is NIL (defaults to T), then no parens are printed around the output. ATSIGN? is ignored (but allowed so that PPRINT-LINEAR can be used with the ~/.../ format directive.
|
| Mentioned in: CLtL2 - 27.3. Dynamic Control of the Arrangement of Output CLtL2 - 27.4. Format Directive Interface CLtL2 - 27.6. Pretty Printing Dispatch Tables HyperSpec - Function PPRINT-FILL, PPRINT-LINEAR, PPRINT-TABULAR | |
(pprint-tabular stream list &optional (colon? t) atsign? tabsize) | Function: Output LIST to STREAM tabbing to the next column that is an even multiple of TABSIZE (which defaults to 16) between each element. :FILL style conditional newlines are also output between each element. If COLON? is NIL (defaults to T), then no parens are printed around the output. ATSIGN? is ignored (but allowed so that PPRINT-TABULAR can be used with the ~/.../ format directive.
|
| Mentioned in: CLtL2 - 27.3. Dynamic Control of the Arrangement of Output CLtL2 - 27.4. Format Directive Interface CLtL2 - 27.6. Pretty Printing Dispatch Tables HyperSpec - Function PPRINT-FILL, PPRINT-LINEAR, PPRINT-TABULAR | |
(pprint-newline kind &optional stream) | Function: Output a conditional newline to STREAM (which defaults to *STANDARD-OUTPUT*) if it is a pretty-printing stream, and do nothing if not. KIND can be one of: :LINEAR - A line break is inserted if and only if the immediatly containing section cannot be printed on one line. :MISER - Same as LINEAR, but only if ``miser-style'' is in effect. (See *PRINT-MISER-WIDTH*.) :FILL - A line break is inserted if and only if either: (a) the following section cannot be printed on the end of the current line, (b) the preceding section was not printed on a single line, or (c) the immediately containing section cannot be printed on one line and miser-style is in effect. :MANDATORY - A line break is always inserted. When a line break is inserted by any type of conditional newline, any blanks that immediately precede the conditional newline are ommitted from the output and indentation is introduced at the beginning of the next line. (See PPRINT-INDENT.)
|
| Mentioned in: CLtL2 - 27.1. Introduction CLtL2 - 27.3. Dynamic Control of the Arrangement of Output CLtL2 - 27.4. Format Directive Interface HyperSpec - Function PPRINT-NEWLINE | |
(pprint-dispatch object &optional (table *print-pprint-dispatch*)) | Undocumented
|
| Mentioned in: CLtL2 - 27.6. Pretty Printing Dispatch Tables HyperSpec - Function PPRINT-DISPATCH | |
(set-pprint-dispatch type function &optional (priority 0) (table *print-pprint-dispatch*)) | Undocumented
|
| Mentioned in: CLtL2 - 27.1. Introduction CLtL2 - 27.3. Dynamic Control of the Arrangement of Output CLtL2 - 27.6. Pretty Printing Dispatch Tables HyperSpec - Function SET-PPRINT-DISPATCH | |
(pprint-logical-block (stream-symbol object &key (prefix nil prefixp) (per-line-prefix nil per-line-prefix-p) (suffix suffixp)) &body body) | Function: Group some output into a logical block. STREAM-SYMBOL should be either a stream, T (for *TERMINAL-IO*), or NIL (for *STANDARD-OUTPUT*). The printer control variable *PRINT-LEVEL* is automatically handled.
|
| Mentioned in: CLtL2 - 27.1. Introduction CLtL2 - 27.3. Dynamic Control of the Arrangement of Output CLtL2 - 27.4. Format Directive Interface HyperSpec - Macro PPRINT-LOGICAL-BLOCK | |
(copy-pprint-dispatch &optional (table *print-pprint-dispatch*)) | Undocumented
|
| Mentioned in: CLtL2 - 27.6. Pretty Printing Dispatch Tables HyperSpec - Function COPY-PPRINT-DISPATCH | |
*print-pprint-dispatch | |
| Mentioned in: HyperSpec - Variable *PRINT-PPRINT-DISPATCH | |
*print-pprint-dispatch* | Variable: The pprint-dispatch-table that controls how to pretty-print objects.
|
| Mentioned in: CLtL2 - 22.1.6. What the Print Function Produces CLtL2 - 22.3.1. Output to Character Streams CLtL2 - 27.2. Pretty Printing Control Variables CLtL2 - 27.6. Pretty Printing Dispatch Tables | |
(pprint-exit-if-list-exhausted) | Function: Cause the closest enclosing use of PPRINT-LOGICAL-BLOCK to return if its list argument is exhausted. Can only be used inside PPRINT-LOGICAL-BLOCK, and only when the LIST argument to PPRINT-LOGICAL-BLOCK is supplied.
|
| Mentioned in: CLtL2 - 27.3. Dynamic Control of the Arrangement of Output CLtL2 - 27.4. Format Directive Interface HyperSpec - Local Macro PPRINT-EXIT-IF-LIST-EXHAUSTED | |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| By Bill Moorier |