List Begin Values Property

if the following are true:
  • expression state at time t = "begin_expr"
  • the expression at time t = Python list elements

then Value Stack at time (t + 1) = [ [ ], Value Stack at time t ]

At the beginning of list (or any other expression) evaluation, LW Python pushes a new list into the value stack.

For example, if the following are true:

  • expression state at time 1 = "begin_expr"
  • the expression at time 1 = [2, 4, 6]
  • Value Stack at time 1 = [ ]

then Value Stack at time (1 + 1) = [ [ ], Value Stack at time 1 ]

Try stepping through the simulator to see LW Python add a new list into the "Values Stack."

Code Editor
LW Python State
Current Line1Current Tab0Time0
LW Python Simulator

Comments

Please log in to add comments