cl-wadler-pprint

API Reference

cl-wadler-pprint

An implementation of A Prettier Printer in Common Lisp.

WADLER-PPRINT

  • Struct NEST
    WIDTH
    DOC
  • Struct TEXT
    STRING
  • Generic-Function PRETTY-OBJECT (object)
    Converts an object to a document.
  • Method PRETTY-OBJECT ((obj cons))
  • Method PRETTY-OBJECT ((obj vector))
  • Method PRETTY-OBJECT ((obj t))
  • Function NEST (width &rest doc)
  • Function TEXT (str)
  • Function NEWLINE-OR (str)
  • Function GROUP (&rest doc)
  • Function BRACKET (l r &rest body)
  • Function SPREAD (&rest docs)
  • Function STACK (&rest docs)
  • Function PRETTY (stream value &key width)
    Pretty-prints a VALUE to the given STREAM, with the given WIDTH.
  • Function PRETTY* (stream doc &key width)
    Pretty-prints a DOCument to the given STREAM, with the given WIDTH.
  • Macro DEF-PRETTY-OBJECT (class (&key print-object) (&rest slots))