Syntax Directed Translation
Syntax Directed Translation
Department of Computer Science and Engineering Course Code and Course Title: ECS 30 &Compiler Design
Thursday, November 3, 2022 2
Topics:
Back patching:
• Boolean expressions,
• flowof control statements.
-----If X is a symbol and a is one of its attributes, then we write X.a to denote the value of a at a particular parse-tree
node labeled X.
Both E and T have a string-valued attribute code. The semantic rule specifies that the string E. code is formed by
concatenating E1. code, T. code, and the character '+I.