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