Memoized zipper-based attribute grammars and their higher order extension

João Paulo Fernandes, Pedro Martins, Alberto Pardo, João Saraiva, Marcos Viera

Research output: Contribution to journalArticlepeer-review

Abstract

Attribute grammars are a powerfull, well-known formalism to implement and reason about programs which, by design, are conveniently modular. In this work we focus on a state of the art zipper-based embedding of classic attribute grammars and higher-order attribute grammars. We improve their execution performance through controlling attribute (re)evaluation by means of memoization techniques. We present the results of our optimizations by comparing their impact in various implementations of different, well-studied, attribute grammars and their Higher-Order extensions.

Original languageEnglish (US)
Pages (from-to)71-94
Number of pages24
JournalScience of Computer Programming
Volume173
DOIs
StatePublished - Mar 15 2019

Keywords

  • Attribute grammars
  • Embedded domain specific languages
  • Functional programming
  • Memoization
  • Zipper data structure

ASJC Scopus subject areas

  • Software

Fingerprint

Dive into the research topics of 'Memoized zipper-based attribute grammars and their higher order extension'. Together they form a unique fingerprint.

Cite this