https://github.com/robertmuth/prettyprinter
Pretty Printer Based on Oppen[1979] With Small Enhancements
https://github.com/robertmuth/prettyprinter
Last synced: 8 months ago
JSON representation
Pretty Printer Based on Oppen[1979] With Small Enhancements
- Host: GitHub
- URL: https://github.com/robertmuth/prettyprinter
- Owner: robertmuth
- License: apache-2.0
- Created: 2025-02-15T16:20:29.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-17T16:59:52.000Z (about 1 year ago)
- Last Synced: 2025-03-17T17:47:51.480Z (about 1 year ago)
- Language: C++
- Size: 52.7 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PrettyPrinter
Pretty printer based on
```
Pretty Printing
Derek C. Oppen, 1979
[PDF](https://www.cs.tufts.edu/~nr/cs257/archive/derek-oppen/prettyprinting.pdf)
```
with some enhancements.
Currently, implementation are available in
* Python3 (the reference implenentation) - see [tests.py] for usage
* C++ (20) - see [tests.cc] for usage
PrettyPrinter is used by [Cwerg](cwerg.org) for formatting
Sexpr- and Python-style syntaxes.
For more recent developments in the field
of Pretty Printing this paper has a good historical overview:
```
The Final Pretty Printer
David Christiansen, David Darais, Weixi Ma
[PDF](https://davidchristiansen.dk/drafts/final-pretty-printer-draft.pdf)
```
Like most recent papers it is using a very functional style and may
be less accessible.