Systematic Editing: Generating Program Transformations From an Example

Software modifications are often systematic - they consist of similar, but not identical, program changes to multiple contexts. Existing tools for systematic program transformation are limited because they require programmers to manually prescribe edits or only suggest a location to edit with a related example. This paper presents the design and implementation of a program transformation tool called SYDIT. Given an example edit, SYDIT generates a context-aware, abstract edit script, and then applies the edit script to new program locations. To correctly encode a relative position of the edits in a new location, the derived edit script includes unchanged statements on which the edits are control and data dependent.

Provided by: Association for Computing Machinery Topic: Software Date Added: Jun 2011 Format: PDF

Find By Topic