[ANN] Gutenberg: a pretty printer for Smalltalk

Damien Cassou damien.cassou at laposte.net
Sun Jul 16 18:22:13 UTC 2006


Damien Pollet wrote:
> 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.



Thank you, I really needed this. I will try and let you know.


> 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 :}


Hope it won't :-)



More information about the Squeak-dev mailing list