> Cool. If we can tweak the formatter to fit our needs, I think this is an 
> interesting idea because we would then have really consistent formatting.

It has dozens of settings that you can configure. It is already
integrated with the settings framework in Pharo 1.1.

> How does one use this formatter?

aClass compile: (aClass parseTreeFor: aSelector) formattedCode

> Something else to consider is that we would need to run the formatter in 
> PharoCore, but it does not contain RB. We could write a small web service 
> that takes some method source as input and returns the formatted code ;)

You only need AST-Core. You can load it in one image, format the code,
commit the changes and load the changes into a fresh Pharo image. Also
you could unload AST-Core, it has no overrides.

Lukas

-- 
Lukas Renggli
http://www.lukas-renggli.ch

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to