Warm Fusion in Stratego: A Case Study in Generation of Program Transformation Systems.
- ASU Author/Contributor (non-ASU co-authors, if there are any, appear on document)
- Patricia Johann Ph.D, Professor (Creator)
- Institution
- Appalachian State University (ASU )
- Web Site: https://library.appstate.edu/
Abstract: Stratego is a domain specific language for the specification of program transformation systems. The design of Stratego is based on the paradigm of rewriting strategies: user-definable programs in a little language of strategy operators determine where and in what order transformation rules are (automatically) applied to a program. The seperation of rules and strategies supports modularity of specifications. Stratego also provides generic features for specification of program trasversals.In this paper we present a case study of Stratego as applied to a non-trivial problem in program transformation. We demonstrate the use of Stratego in eliminating intermediate data structures from (also known as deforesting) functional programs via the warm fusion algorithm of Launchbury and Sheard. This algorithm has been specified in Stratego and embedded in a fully automatic transformation system for kernel Haskell. The entire system consists of about 2600 lines of specification code, which breaks down into 1850 lines for a general framework for Haskell transformation and 750 lines devoted to a highly modular, easily extensible specification of the warm fusion transformer itself. Its successful design and construction provides further evidence that programs generated from Stratego specifications are suitable for integration into real systems, and that rewriting strategies are a good paradigm for the implementation of such systems.This report contains the complete Stratego specification of the transformation. The first chapter, which will appear as a selfcontained publication, explains the ideas of the transformation, gives an overview of the specification and discusses several techniques used in the specification. The subsequent chapters present the specification of syntax of the language, basic operations, typechecking, simplification, and the actual transformation. In addition to the abstract syntax, a concrete syntax definition in SDF2 is given as an example of connection of a parser frontend to transformation systems built with Stratego.
Warm Fusion in Stratego: A Case Study in Generation of Program Transformation Systems.
PDF (Portable Document Format)
460 KB
Created on 5/2/2016
Views: 468
Additional Information
- Publication
- Johann, Patricia & Visser, Eelco (2000) "Warm Fusion in Stratego: A Case Study in Generation of Program Transformation Systems". Annals of Mathematics and Artificial Intelligence, vol. 29, no. 1-4 (2000), pp. 1 - 34. ISSN: 1573-7470 Version Of Record Available From www.springer.com
- Language: English
- Date: 2000
- Keywords
- stratego, warm fusion, deforesting, automatic program tranformation