logviewer/pretty-print/projects/pretty-print
2026-04-04 21:46:55 +02:00
..
src pretty printing 2026-04-04 21:46:55 +02:00
tests pretty printing 2026-04-04 21:46:55 +02:00
Cargo.toml pretty printing 2026-04-04 21:46:55 +02:00
package.json vendor pretty-print dep 2026-04-03 18:10:57 +02:00
readme.md vendor pretty-print dep 2026-04-03 18:10:57 +02:00

This crate defines a Wadler-style pretty-printing API.

Start with the static functions of Doc.

Quick start

Let's pretty-print simple sexps! We want to pretty print sexps like

(1 2 3)

or, if the line would be too long, like

((1)
 (2 3)
 (4 5 6))

A simple symbolic expression consists of a numeric atom or a nested ordered list of symbolic expression children.