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 10
Inputs:
Stack:
10
8
Environment:
x
3