Reference Attributed Grammars

Görel Hedin. Reference Attributed Grammars. Informatica (Slovenia), 24(3):301-317, 2000.

Abstract

An extension to canonical attribute grammars is introduced, 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 concisely in these grammars, and an optimal evaluation algorithm is available. The proposed formalism and algorithm have been implemented in an interactive language development tool.