Zipper-based attribute grammars and their extensions

Pedro Martins, João Paulo Fernandes, João Saraiva

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Abstract

Attribute grammars are a suitable formalism to express complex software language analysis and manipulation algorithms, which rely on multiple traversals of the underlying syntax tree. Recently, Attribute Grammars have been extended with mechanisms such as references and high-order and circular attributes. Such extensions provide a powerful modular mechanism and allow the specification of complex fix-point computations. This paper defines an elegant and simple, zipper-based embedding of attribute grammars and their extensions as first class citizens. In this setting, language specifications are defined as a set of independent, off-the-shelf components that can easily be composed into a powerful, executable language processor. Several real examples of language specification and processing programs have been implemented in this setting.

Original languageEnglish (US)
Title of host publicationProgramming Languages - 17th Brazilian Symposium, SBLP 2013, Proceedings
PublisherSpringer Verlag
Pages135-149
Number of pages15
ISBN (Print)9783642409219
DOIs
StatePublished - 2013
Event17th Brazilian Symposium on Programming Languages, SBLP 2013 - Brasilia, Brazil
Duration: Oct 3 2013Oct 4 2013

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume8129 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference17th Brazilian Symposium on Programming Languages, SBLP 2013
Country/TerritoryBrazil
CityBrasilia
Period10/3/1310/4/13

ASJC Scopus subject areas

  • Theoretical Computer Science
  • General Computer Science

Fingerprint

Dive into the research topics of 'Zipper-based attribute grammars and their extensions'. Together they form a unique fingerprint.

Cite this