[ANN] Gutenberg: a pretty printer for Smalltalk

Marcus Denker denker at iam.unibe.ch
Mon Jul 17 08:35:04 UTC 2006


On 17.07.2006, at 09:33, Philippe Marschall wrote:

> 2006/7/16, Damien Pollet <damien.pollet at gmail.com>:
>> 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
>
> Cool
>
>> 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.
>
> Maybe I'm just seeing things. But I'm missing stuff that should be  
> there
> - I think the preference should be named something like
> useGutenbergForPrettyPrint (btw Markus renamed #useRBASTForPrettyPrint
> to #useRBForPrettyPrint)

Hmm... it's now useRBASTForPrettyPrint in the latest version







More information about the Squeak-dev mailing list