Structure-directed Genericity in Functional Programming and Attribute Grammars - Inria - Institut national de recherche en sciences et technologies du numérique Accéder directement au contenu
Rapport (Rapport De Recherche) Année : 1997

Structure-directed Genericity in Functional Programming and Attribute Grammars

Résumé

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.
Fichier principal
Vignette du fichier
RR-3105.pdf (245.31 Ko) Télécharger le fichier
Loading...

Dates et versions

inria-00073586 , version 1 (24-05-2006)

Identifiants

  • HAL Id : inria-00073586 , version 1

Citer

É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⟩
238 Consultations
138 Téléchargements

Partager

Gmail Facebook X LinkedIn More