Symbolic Composition

Abstract : The deforestation of a functional program is a transformation which gets rid ofintermediate data structures constructions that appear when two functions are composed. The descriptional composition, initially introduced by Ganzinger and Giegerich, is a deforestation method dedicated to the composition of two attribute grammars. This article presents a new functional deforestation technique, called symbolic composition, based on the descriptional composition mechanism, but extending it. An automatic translation from a functional program into an equivalent attribute grammar allows symbolic composition to be applied, and then the result can be translated back into a functional program. This yields a sourceto source functional program transformation. The resulting deforestation method provides a better deforestation than other existing functional techniques. Symbolic composition, that uses the declarative and descriptional features of attribute grammars is intrinsically more powerful than categorical-flavored transformations, whose recursion schemes are set by functors. These results tend to show that attribute grammars are a simple intermediate representation, particularly well-suited for program transformations.
Type de document :
Rapport
[Research Report] RR-3348, INRIA. 1998
Liste complète des métadonnées

https://hal.inria.fr/inria-00073341
Contributeur : Rapport de Recherche Inria <>
Soumis le : mercredi 24 mai 2006 - 12:35:01
Dernière modification le : vendredi 25 mai 2018 - 12:02:05
Document(s) archivé(s) le : dimanche 4 avril 2010 - 23:43:08

Fichiers

Identifiants

  • HAL Id : inria-00073341, version 1

Citation

Loïc Correnson, Étienne Duris, Didier Parigot, Gilles Roussel. Symbolic Composition. [Research Report] RR-3348, INRIA. 1998. 〈inria-00073341〉

Partager

Métriques

Consultations de la notice

311

Téléchargements de fichiers

365