SkillAgentSearch skills...

PrettyPrinter

Pretty Printer Based on Oppen[1979] With Small Enhancements

Install / Use

/learn @robertmuth/PrettyPrinter
About this skill

Quality Score

0/100

Supported Platforms

Universal

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 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.

Related Skills

View on GitHub
GitHub Stars5
CategoryDevelopment
Updated11mo ago
Forks0

Languages

C++

Security Score

77/100

Audited on Apr 19, 2025

No findings