Yasir Explains/Compiler Design/Syntax-Directed Translation
Compiler Design

Syntax-Directed Translation

Compiler Design

Syntax-Directed Translation

Attach meaning to grammar. Learn how syntax-directed definitions, attributes, and semantic rules turn a parse tree into an annotated tree of computed values; how dependency graphs order that evaluation; how to build syntax trees and translation schemes; and how a type checker uses type expressions to verify expressions, statements, functions, and conversions.

Topics

Syntax-Directed Definitions

Attributes

Semantic Rules

Dependency Graph

Construction of Syntax Trees

Translation Scheme

Type Expressions

Type Checking

Type Checking of Expressions, Statements and Functions

Type Conversions