protected ExecutionContext(IExecutionContext ParentContext, IExecutionContext GlobalContext, ToolScriptParser Parser) { this.GlobalContext = GlobalContext ?? this; this.ParentContext = ParentContext; this.Parser = Parser; LocalVariables = new Dictionary<string, object>(); }
private WindowContext(IExecutionContext ParentContext, IExecutionContext GlobalContext, ToolScriptParser Parser) : base(ParentContext, GlobalContext, Parser) { }
public static ExecutionContext CreateRootContext(ToolScriptParser parser) { ExecutionContext root = new ExecutionContext(null, null, parser); root.LocalVariables["eval"] = new ToolScriptFunction(root.EvalInvoked); return root; }
public ToolScriptTestBase() { parser = new ToolScriptParser(); Log.Add(new TextLogger(Console.Out, Verbosity.Debug)); }