Skip to content

Execution of visual script

Huajiang Wei edited this page Nov 5, 2021 · 1 revision

Execution of visual script


ExecutionEnvironment

ExecutionEnvironment it the execution engine and environment for visual script. ExecutionEnvironment is tree structure, it stores variables in every execution level or scope. When you want to find an variable value, search in current level and then its parent, just like the scope of variable.

Level of ExecutionEnvironment

1st - store global variable, functions and module 2nd - Class evironment, store class type 3rd - instance environment of Class, store the properties of class 4th - function running environment. store the arguments of function 5th or more - local running environment

Completion - Return of node, and Jump of execution

Completion will return after every node running, it contains the return value and jump of execution. There are five types of Completion, value, exception, return, break and continue.

Clone this wiki locally