示例#1
0
 public CatTypeVector(AstStack node)
 {
     mList = new List <CatKind>();
     foreach (AstType tn in node.mTypes)
     {
         mList.Add(Create(tn));
     }
 }
示例#2
0
 public AstFxnType(PegAstNode node)
     : base(node)
 {
     CheckLabel(AstLabel.FxnType);
     CheckChildCount(node, 3);
     mCons         = new AstStack(node.GetChild(0));
     mbSideEffects = node.GetChild(1).ToString().Equals("~>");
     mProd         = new AstStack(node.GetChild(2));
 }
示例#3
0
 public AstFxnType(PegAstNode node)
     : base(node)
 {
     CheckLabel(AstLabel.FxnType);
     CheckChildCount(node, 3);
     mCons = new AstStack(node.GetChild(0));
     mbSideEffects = node.GetChild(1).ToString().Equals("~>");
     mProd = new AstStack(node.GetChild(2));
 }