Lowering Expression Sub-treesTopParse Trees and AmbiguityAttribute Grammars as a framework for semantic processing

Attribute Grammars as a framework for semantic processing

  1. Semantic processing routines often return values that summarize the properties of the sub-phrases to which they were applied.

  2. It can be useful to think of the values returned by such semantic processing routines as labels that get affixed to the nodes of the parse tree or abstract syntax tree as it is processed.

Computer Science 434
Department of Computer Science
Williams College

Lowering Expression Sub-treesTopParse Trees and AmbiguityAttribute Grammars as a framework for semantic processing