zbMATH — the first resource for mathematics

Zipper-based attribute grammars and their extensions. (English) Zbl 1405.68161
Du Bois, André Rauber (ed.) et al., Programming languages. 17th Brazilian symposium, SBLP 2013, Brasília, Brazil, October 3–4, 2013. Proceedings. Berlin: Springer (ISBN 978-3-642-40921-9/pbk). Lecture Notes in Computer Science 8129, 135-149 (2013).
Summary: 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.
For the entire collection see [Zbl 1284.68011].

68Q42 Grammars and rewriting systems
68Q60 Specification and verification (program logics, model checking, etc.)
Full Text: DOI