The Layout Preservation Project

Spoofax
We implemented an algorithm for layout preservation in refactorings. The algorithm reconstructs the source code after a transformation on the Abstract Syntax Tree, preserving the layout of the original source code.

The algorithm will be integrated in the Spoofax language workbench in the near future. An alpha version is available from

https://svn.strategoxt.org/repos/StrategoXT/refactoring/lib-reconstruction/