HAL will be down for maintenance from Friday, June 10 at 4pm through Monday, June 13 at 9am. More information
Skip to Main content Skip to Navigation

Structure-directed Genericity in Functional Programming and Attribute Grammars

Abstract : Generic control operators, such as \emph{fold}, have been introduced in functional programming to increase the power and applicability of data-structure-based transformations. This is achieved by making the structure of the data more explicit in program specifications. We argue that this very important property is one of the original concepts of attribute grammars. In this paper, we present the similarities between the \emph{fold} formalism and attribute grammars. In particular, we show the equivalence of their respective deforestation methods. Given these results and the fundamental role of deforestation in the concept of \emph{structure-directed genericity}, first devised for attribute grammars with descriptional composition, we show how the \emph{fold} operator with its fusion method allow us to transport this concept in the area of functional programming.
Document type :
Complete list of metadata

Cited literature [1 references]  Display  Hide  Download

Contributor : Rapport de Recherche Inria Connect in order to contact the contributor
Submitted on : Wednesday, May 24, 2006 - 1:15:57 PM
Last modification on : Thursday, February 3, 2022 - 11:13:53 AM
Long-term archiving on: : Sunday, April 4, 2010 - 11:50:56 PM


  • HAL Id : inria-00073586, version 1



Étienne Duris, Didier Parigot, Gilles Roussel, Martin Jourdan. Structure-directed Genericity in Functional Programming and Attribute Grammars. [Research Report] RR-3105, INRIA. 1997. ⟨inria-00073586⟩



Record views


Files downloads