Chapter 8: Intermediate Code Generation

Flow of Control Statements

S if E then S 1

| if E then S 1 else S 2

| while E do S 1

| begin L end

| A

L L ; S

| S

S : Statement

A : Assignment

L : Statement list

The above given example has these flow of control statements of the backpatching grammar. We will attach rules to each reduction for the backpatching. Continue to the next slides to have a look at how to do that.