Entry Arguments Property

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

then arguments stack at time (t + 1) = [ [ key, [ value, [ ] ] ], arguments stack at time t ]

At the beginning of entry evaluation, LW Python pushes entry key and value into the "Arguments" stack. The purpose of this is to evaluate the key and value before evaluating the "parent" entry. This is analogous to function calls that push their arguments into the "Arguments" stack.

For example, if the following are true:

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

Try stepping through the simulator to see LW Python push the entry key and value into the "Arguments Stack."

Code Editor
LW Python State
Current Line1Current Tab0Time0
LW Python Simulator

Comments

Please log in to add comments