Towards Automatical Migration of Transformation Rules after Grammar Extension

  • Authors:
  • Wolfgang Lohmann;Günter Riedewald

  • Affiliations:
  • -;-

  • Venue:
  • CSMR '03 Proceedings of the Seventh European Conference on Software Maintenance and Reengineering
  • Year:
  • 2003

Quantified Score

Hi-index 0.00

Visualization

Abstract

The paper addresses two problems in software maintenance.Firstly, some maintenance tasks require modificationsof the grammar. A change in a grammar can makeabstract syntax and transformation rules outdated, whichthen themselves become subject to a maintenance process.Secondly, it is essential that after a repair programs lookas much as possible as they looked before. Especially commentsand principle readability by humans are indispensablefor further maintenance.We argue that necessary changes of both abstract syntaxand transformation rules due to grammar extension can bemade automatically. Thus, most of the original rules canbe reused. The approach can be used to define and usesimplified views on complex patterns to be analysed withtransformation rules.To give an example we apply the described techniqueto rule-based program transformations extended with partiallayout preservation. The migration relation is given.The programmer uses common rewriting techniques for programtransformation without taking care of layout, whichthen is automatically included.