%0 Conference Paper %B Simpósio Brasileiro de Linguagens de Programação - SBLP %D 2013 %T Zipper-Based Attribute Grammars and Their Extensions %A Pedro Martins %A João Paulo Fernandes %A João Alexandre Saraiva %C Brazil %P 135-149 %X

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.

%8 September %> https://haslab.uminho.pt/sites/default/files/jpaulo/files/sblp13.pdf