TY - GEN
T1 - Zipper-based attribute grammars and their extensions
AU - Martins, Pedro
AU - Fernandes, João Paulo
AU - Saraiva, João
PY - 2013
Y1 - 2013
N2 - 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.
AB - 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.
UR - http://www.scopus.com/inward/record.url?scp=84887423314&partnerID=8YFLogxK
UR - http://www.scopus.com/inward/citedby.url?scp=84887423314&partnerID=8YFLogxK
U2 - 10.1007/978-3-642-40922-6_10
DO - 10.1007/978-3-642-40922-6_10
M3 - Conference contribution
AN - SCOPUS:84887423314
SN - 9783642409219
T3 - Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
SP - 135
EP - 149
BT - Programming Languages - 17th Brazilian Symposium, SBLP 2013, Proceedings
PB - Springer Verlag
T2 - 17th Brazilian Symposium on Programming Languages, SBLP 2013
Y2 - 3 October 2013 through 4 October 2013
ER -