Structure-directed Genericity in Functional Programming and Attribute Grammars - Inria - Institut national de recherche en sciences et technologies du numérique Access content directly
Reports (Research Report) Year : 1997

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

Dates and versions

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

Identifiers

  • HAL Id : inria-00073586 , version 1

Cite

É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⟩
236 View
130 Download

Share

Gmail Facebook X LinkedIn More