internal ScriptExecutionManager(ScriptDelegate deleg, object[] args) { Delegate = deleg; executions = new Queue <ScriptExecution>(); var env = new ScriptEnvironment(Delegate, args); env.ExecutionManager = this; MainExecution = new ScriptExecution(env); executions.Enqueue(MainExecution); }
internal ScriptEnvironment(ScriptDelegate sdelegate, object[] args) : this(sdelegate) { this.args = args; vars = new Dictionary <string, object>(); stack = new Stack <object>(); callStack = new Stack <object>(); #if DEBUG execHistory = new List <Instruction>(); #endif }
internal ScriptEnvironment(ScriptDelegate sdelegate) { Delegate = sdelegate; }