[ANN] Gutenberg: a pretty printer for Smalltalk

Damien Pollet damien.pollet at gmail.com
Sun Jul 16 16:05:53 UTC 2006


Hi,

I've ported Gutenberg from VW. The package contains a pretty-printing
algo (taken from Philip Wadler's papers on Haskell pretty-printer
combinators) and a visitor to replace the RB one.

It is available from:
    http://www.squeaksource.com/Gutenberg.html

Once loaded you can activate it by evaluating this:
    RBProgramNode formatterClass: RBPrettyFormatter.
You'll need to set the 'useRBASTForPrettyPrint' preference and use the
browser in 'prettyPrint' mode.

I need comments on the packaging, the pretty-printing itself (yes, it
adds periods everywhere...) and ideas on making it customizable
without basically rewriting a new visitor.

Oh, and I decline any responsibility if it breaks your code :}

-- 
 Damien Pollet
 type less, do more



More information about the Squeak-dev mailing list