An algorithm for prettyprinting using word wrapping is described that is independent of the language being formatted and is substantially simpler than other published algorithms. The algorithm makes use of a simple model with a small set of primitives to direct the prettyprinting of text. For an input string of length $n$, and an output device $m$ characters wide the algorithm runs in $O(n)$ time and requires $O(m)$ space. The algorithm can be restarted from an intermediate point and is therefore well suited for incremental prettyprinting of text. This algorithm is now being used in the Cornell Synthesizer Generator [2]. The algorithm is compared with and contrasted to the previously published algorithm by Oppen [1]
Graduation date: 1988Prettyprinters are software tools that format\ud program source code so that it...
In layout-sensitive languages, the indentation of an expression or statement can influence how a pro...
The PP system provides an efficient implementation of the Common Lisp pretty printing function PPR...
Pretty printing is the task of nicely formatting tree structured data within a given line width limi...
Abstract Pretty printing is the task of nicely formatting tree structured data within a given line w...
This document present a collection of Unix and Latex tools to automatically typeset prettyprinted al...
PrettyPrinting is a Julia library for optimal formatting of composite data structures. It works by g...
Pretty-printing is the conversion of the list structure to a readable format. This paper outlines th...
Tool builders dealing with many different languages, and language designers require sophisticated pr...
There are several purely functional libraries for converting tree structured data into indented text...
When implementing a programming language, we often write a parser and a pretty-printer. However, man...
From an elegant specification, two effective algorithms for pretty-printing of arbitrary (non—circul...
AbstractProgrammers working on large software systems are faced with an extremely complex, informati...
Abstract. We describe the design and implementation of a Standard ML of New Jersey library for the i...
The automatic generation of formatters for (programming) languages within the Asf+Sdf Meta-Environme...
Graduation date: 1988Prettyprinters are software tools that format\ud program source code so that it...
In layout-sensitive languages, the indentation of an expression or statement can influence how a pro...
The PP system provides an efficient implementation of the Common Lisp pretty printing function PPR...
Pretty printing is the task of nicely formatting tree structured data within a given line width limi...
Abstract Pretty printing is the task of nicely formatting tree structured data within a given line w...
This document present a collection of Unix and Latex tools to automatically typeset prettyprinted al...
PrettyPrinting is a Julia library for optimal formatting of composite data structures. It works by g...
Pretty-printing is the conversion of the list structure to a readable format. This paper outlines th...
Tool builders dealing with many different languages, and language designers require sophisticated pr...
There are several purely functional libraries for converting tree structured data into indented text...
When implementing a programming language, we often write a parser and a pretty-printer. However, man...
From an elegant specification, two effective algorithms for pretty-printing of arbitrary (non—circul...
AbstractProgrammers working on large software systems are faced with an extremely complex, informati...
Abstract. We describe the design and implementation of a Standard ML of New Jersey library for the i...
The automatic generation of formatters for (programming) languages within the Asf+Sdf Meta-Environme...
Graduation date: 1988Prettyprinters are software tools that format\ud program source code so that it...
In layout-sensitive languages, the indentation of an expression or statement can influence how a pro...
The PP system provides an efficient implementation of the Common Lisp pretty printing function PPR...