Пример #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));
 }