6.1: Syntax-Directed Translation and Attribute Grammars
Read Chapter 5 on interpretation, where execution of a program takes place as the derivation is produced.
Study the definitions and examples. Syntax-directed translation and attribute grammars are techniques for using the parser to drive the translation directly. Attributes are properties of grammar symbols, and the attributes take on values. Rules associated with each grammar production specify how to compute the value of the attributes.