← 🧮 Syntax-Directed Translation
Subtopic 4 of 5

6.4SDT during bottom-up parsing

Keep a value stack parallel to the parser stack. When reducing by A → X Y Z, the semantic action reads the values of X, Y, Z from the stack and pushes A.val.

#StackInputAction
13 * 5 + 4 $shift 3

Previous year questions: Syntax-Directed Translation (9)

PYQs are grouped by topic, so this is the full set for Syntax-Directed Translation; try the ones that match this subtopic. Open all 9 on the topic page.