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:
Push 3
Inputs:
Stack:
3
5
Environment:
x
5