This page collects examples and extra resources for the SLE (International Conference on Software Language Engineering) paper A Pretty Good Formatting Pipeline.
Anya Helene Bagge and Tero Hasu. A Pretty Good Formatting Pipeline. In 6th International Conferance on Software Language Engineering (SLE’13), volume 8225 of LNCS, pages 177-196. Springer, October 2013. [pdf, slides]
Abstract. Proper formatting makes the structure of a program apparent and aids program comprehension. The need to format code arises in code generation and transformation, as well as in normal reading and editing situations. Commonly used pretty-printing tools in transformation frameworks provide an easy way to produce indented code that is fairly readable for humans, without reaching the level of purpose-built reformatting tools, such as those built into IDEs. This paper presents a library of pluggable components, built to support style-based formatting and reformatting of code, and to enable further experimentation with code formatting.
The final publication is available on link.springer.com.