mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-17 13:12:37 +00:00
18 lines
373 B
Plaintext
18 lines
373 B
Plaintext
/*
|
|
Class: scope
|
|
A runtime instance of a block. Used internally by the interpreter.
|
|
*/
|
|
/scope
|
|
var
|
|
scope/parent = null
|
|
node/BlockDefinition/block
|
|
list
|
|
functions
|
|
variables
|
|
|
|
New(node/BlockDefinition/B, scope/parent)
|
|
src.block = B
|
|
src.parent = parent
|
|
src.variables = B.initial_variables.Copy()
|
|
src.functions = B.functions.Copy()
|
|
.=..() |