Expression:
((
2
+
x++
)+
(10-((x=3)+(x=READ)))
)
Parse tree:
Translation:
Input
Put x
Push 3
Put x
DoOp +
Push 10
DoOp -
Get x
Get x
Push 1
DoOp +
Put x
Pop
Push 2
DoOp +
DoOp +
Command:
DoOp +
Inputs:
Stack:
5
2
Environment:
x
4