Evaluate Constant State Property
If Python is in the "begin_expr" state at time t, and the current expression is constant c, and there are no ancestor expressions, then the state is updated to "end_expr." More formally:
if the following are true:
- expression state at time t = "begin_expr"
- the expression at time t = c
- c is constant
- parent stack at time t = [ ]
then expression state at time (t + 1) = "end_expr"
For example,
if the following are true:
- the expression at time 1 = 8
- expression state at time 1 = "begin_expr"
- 8 is constant
- parent stack at time 1 = [ ]
then expression state at time (1 + 1) = "end_expr"
Try stepping through the simulator to see the Expression state change to "end_expr."
Code Editor
LW Python State
Current Line | 1 | Current Tab | 0 | Time | 0 |
LW Python Simulator
Comments
Please log in to add comments