Higher order attribute grammars
Harald Vogt, S. Doaitse Swierstra, M.F. Kuiper · Proceedings of the ACM SIGPLAN Conference on Programming Language Design and Implementation · 1989
A new kind of attribute grammars, called higher order attribute grammars, is defined. In higher order attribute grammars the structure tree can be expanded as a result of attribute computation. A structure tree may be stored in an attribute. The term higher order is used because of the analogy with higher order functions, where a function can be the result or parameter of another function. A relatively simple method, using OAGs, is described to derive an evaluation order on the defining attribute occurrences which comprises all possible direct and indirect attribute dependencies. As in OAGs, visit-sequences are computed from which an efficient algorithm for attribute evaluation can be derived.
Cited by 216 works. doi:10.1145/73141.74830
Authors
References
- Semantics of context-free languages
- A new implementation technique for applicative languages
- Miranda: A non-strict functional language with polymorphic types
- Generating Language-Based Environments
- Incremental Context-Dependent Analysis for Language-Based Editors
- The Synthesizer Generator: A system for constructing language-based editors
- Ordered attributed grammars
- Super-combinators a new implementation method for applicative languages
- Semantics of context-free languages: Correction
- Compiler Construction