Add code formatter (based on pretty printer?)
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
Note that Spoofax now generates a customizable pretty printer for each project (Spoofax/109). Could it be used for formatting?
Log in to post comments