| Productions rule | Semantic action |
| D → TL | X1 .type = X2 .type |
| T → int | T.type = int |
| T → float | T.type = float |
| L → L1 , id | X3 .type = X4 .type add Type(id.entry, X5 .type) |
| L → id | addType(id.entry, X6 .type) |
Which one of the following are the appropriate choices for 𝑋1, 𝑋2, 𝑋3 and 𝑋4?