Entry Parent Property

if the following are true:
  • expression state at time t = "begin_expr"
  • the expression at time t = entry key: value

then parent stack at time (t + 1) = [ entry key: value, parent stack at time t ]

At the beginning of entry evaluation, LW Python pushes the entry expression into the parent stack. This is to save the expression somewhere while LW Python first evaluates the children (the entry key and value).

For example, if the following are true:

  • (expression state at time 3) = "begin_expr"
  • (the expression at time 3) = (entry "ES":"Spain")
then (parent stack at time (3 + 1)) = [ entry "ES":"Spain", parent stack at time 3 ]

Try stepping through the simulator to see LW Python add the expression to the "Parent Stack."

Code Editor
LW Python State
Current Line1Current Tab0Time0
LW Python Simulator

Comments

Please log in to add comments