Study this topic

Syntax-Directed Definitions

Parsing tells the compiler how a program is structured; it does not compute anything about the program. Syntax-directed translation attaches information to grammar symbols, called attributes, and attaches rules to productions that compute those attributes.

Short notes9 min read

Syntax-Directed Translation Schemes

A syntax-directed definition says what each attribute equals but leaves the order of evaluation to the dependency graph.

Short notes9 min read