/// <summary>
 /// 初始化块节点
 /// </summary>
 /// <param name="code">代码串</param>
 /// <param name="parent">父节点</param>
 /// <param name="output">输出类</param>
 public NodeBlockContext(string code, NodeBlockContext parent, OutPutProvide output)
     : base(code, parent, output)
 {
     Scope        = new Dictionary <string, ParameterExpression>(10);
     Nodes        = new List <NodeContext>(10);
     DefineParams = new List <ParameterExpression>(10);
 }
Exemple #2
0
 /// <summary>
 /// 构造
 /// </summary>
 /// <param name="code"></param>
 /// <param name="parent"></param>
 /// <param name="output"></param>
 public NodeContext(string code, NodeBlockContext parent, OutPutProvide output)
 {
     PrintProvide = new PrintExpressionProvide(output);
     NodeId       = Guid.NewGuid().ToString("N");
     CodeString   = code;
     ParentNode   = parent;
     ParsingModel();
 }
Exemple #3
0
 /// <summary>
 /// 构造
 /// </summary>
 /// <param name="code"></param>
 /// <param name="parent"></param>
 /// <param name="output"></param>
 public IFNodeContext(string code, NodeBlockContext parent, OutPutProvide output)
     : base(code, parent, output)
 {
     NdType = NodeType.IF;
 }
Exemple #4
0
 /// <summary>
 /// 构造
 /// </summary>
 /// <param name="code"></param>
 /// <param name="parent"></param>
 /// <param name="output"></param>
 public EACHNodeContext(string code, NodeBlockContext parent, OutPutProvide output)
     : base(code, parent, output)
 {
     NdType = NodeType.EACH;
     BuildEachVariable();
 }