- https://github.com/eerohele/pp - Peppy pretty-printer for Clojure data.
- https://github.com/brandonbloom/fipp - Fast Idiomatic Pretty Printer for Clojure
- https://cljdoc.org/d/zprint/zprint/1.3.0/doc/introduction
zprint is a library and command line tool providing a variety of pretty printing capabilities for both Clojure code and Clojure/EDN structures.
- https://clojure.github.io/clojure/clojure.pprint-api.html
- https://novaspec.org/cl/22_2_The_Lisp_Pretty_Printer
- https://people.cs.aau.dk/~normark/laml-distributions/laml/lib/man/scheme-pretty-printing.html
- https://cs.brown.edu/courses/cs173/2008/Manual/reference/pretty-print.html
non-lisp
-
The Hardest Program I’ve Ever Written - Bob Nystrom
At this point, you’re probably thinking, “Wait. What’s so hard about formatting?” After you’ve parsed, can’t you just walk the AST and pretty-print it with some whitespace?
If every statement fit within the column limit of the page, yup. It’s a piece of cake. (I think that’s what gofmt does.) But our formatter also keeps your code within the line length limit. That means adding line breaks (or “splits” as the formatter calls them), and determining the best place to add those is famously hard.