Begin Expression State Property
If LW Python is in the "begin_expr" state and "Expression" is a function call, then the next state is "iterate_args."
if the following are true:
- expression state at time t = "begin_expr"
- the expression at time t = function call with name: name and arguments: args
then expression state at time (t + 1) = "iterate_args"
Code Editor
LW Python State
Current Line | 1 | Current Tab | 0 | Time | 0 |
LW Python Simulator
Examples
if the following are true:
- expression state at time 2 = "begin_expr"
- the expression at time 2 = function call with name: __add__ and arguments: [ 5, [ 2, [ ] ] ]
then expression state at time (2 + 1) = "iterate_args"
if the following are true:
- expression state at time 6 = "begin_expr"
- the expression at time 6 = function call with name: fly and arguments: [ airplane, [ ] ]
then expression state at time (6 + 1) = "iterate_args"
Comments
Please log in to add comments