Specifying transformation sequences as computation on program fragments with an abstract attribute grammar | IEEE Conference Publication | IEEE Xplore

Specifying transformation sequences as computation on program fragments with an abstract attribute grammar


Abstract:

We present a grammar based approach for specifying a transformation as a sequence of transformation operations that operate on an intermediate representation. The transfo...Show More

Abstract:

We present a grammar based approach for specifying a transformation as a sequence of transformation operations that operate on an intermediate representation. The transformation sequence is specified in the semantic actions of an abstract attribute grammar. The mapping between the object-oriented design of the intermediate representation and the abstract grammar directly reflects the object-oriented design in the structure of the grammar. It has properties that permit utilizing grammar based tools at arbitrary abstraction levels of the language representation. The program fragments can be both source strings and fragments of the intermediate representation that can be used interchangeably in the specification. We demonstrate the applicability of the approach by using available attribute grammar tools and the source-to-source infrastructure ROSE for specifying and performing transformations of C+ + programs. The results of data flow analysis tools using fixed point algorithms is integrated as available attributes that can be used for enabling or disabling transformation sequences. With the abstract attribute grammar the transformation is computed as an attribute value that represents a sequence of restructure operations. The composition of different transformation sequences permits the reuse of sub-transformation specifications. Eventually we discuss the correspondence to rewrite tools permitting a pattern based restructuring of the program representation.
Date of Conference: 30 September 2005 - 01 October 2005
Date Added to IEEE Xplore: 21 November 2005
Print ISBN:0-7695-2292-0
Conference Location: Budapest, Hungary

Contact IEEE to Subscribe

References

References is not available for this document.