Reference Attributed Grammars
Görel Hedin · 2000
An object-oriented extension to canonical attribute grammars is described, permitting attributes to be references to arbitrary nodes in the syntax tree, and attributes to be accessed via the reference attributes. Important practical problems such as name and type analysis for object-oriented languages can be expressed in a concise and modular manner in these grammars, and an optimal evaluation algorithm is available. An extensive example is given, capturing all the key constructs in object-oriented languages including block structure, classes, inheritance, qualified use, and assignment compatibility in the presence of subtyping. The formalism and algorithm have been implemented in APPLAB, an interactive language development tool.
Cited by 168 works.
Authors
References
- Semantics of context-free languages
- The Java Programming Language
- The synthesizer generator
- Ordered attributed grammars
- Modularity and reusability in attribute grammars
- Non-syntactic attribute flow in language based editors
- A meta-language and system for nonlocal incremental attribute evaluation in language-based editors
- Incremental Graph Evaluation
- Null object
- Automatic generation of fixed-point-finding evaluators for circular, but well-defined, attribute grammars