Exemplo n.º 1
0
 public CatTypeVector(AstStack node)
 {
     mList = new List <CatKind>();
     foreach (AstType tn in node.mTypes)
     {
         mList.Add(Create(tn));
     }
 }
Exemplo n.º 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));
 }
Exemplo n.º 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));
 }