Pretty printing files seem promising for a code formatter, but they may not be expressive enough. Still there has been some work in the IMP project at using the box language for creating pretty printers that can be customized according to the user’s preferences.

Note that there’s some overlap between this and Maartje’s work on combining pretty printing and style preservation for refactoring.

Submitted by Lennart Kats on 9 March 2010 at 14:25

On 11 June 2010 at 13:02 Lennart Kats commented:

Note that Spoofax now generates a customizable pretty printer for each project (Spoofax/109). Could it be used for formatting?


On 8 January 2013 at 16:23 Eelco Visser removed tag @lennartkats

On 1 February 2013 at 11:05 Guido Wachsmuth tagged pretty-printing

On 1 February 2013 at 11:06 Guido Wachsmuth tagged 1.3

On 13 March 2014 at 08:56 Eelco Visser removed tag 1.3

Log in to post comments