Пример #1
0
 public ExprAlloc(SugarType type, string name, Expr expr, AllocType style)
 {
     this.Type = type;
     this.Name = new List<string> { name };
     this.ExprList = new List<Expr> { expr };
     this.Style = style;
 }
Пример #2
0
 public TemplateType(SugarType type, List<SugarType> args)
 {
     this.Type = type;
     if (args != null)
     {
         this.Args = args;
     }
 }
Пример #3
0
 public FuncType(List <SugarType> args, SugarType type)
 {
     this.Type = type;
     if (args != null)
     {
         this.Args = args;
     }
 }
Пример #4
0
 public TemplateType(SugarType type, List <SugarType> args)
 {
     this.Type = type;
     if (args != null)
     {
         this.Args = args;
     }
 }
Пример #5
0
 public ExprNewArray(SugarType type, List <Expr> args)
 {
     this.ElemType = type;
     if (args != null)
     {
         this.Args = args;
     }
 }
Пример #6
0
 public ArrayType(SugarType type, List <Expr> args)
 {
     this.Type = type;
     if (args != null)
     {
         this.Args = args;
     }
 }
Пример #7
0
 public ExprMatch(Expr expr, SugarType type, List <ExprMatchItem> list)
 {
     this.Expr = expr;
     this.Type = type;
     if (list != null)
     {
         this.List = list;
     }
 }
Пример #8
0
 public ExprCurryLambda(StmtBlock block, List <ExprAlloc> args, bool isRef, SugarType type)
 {
     this.Block = block;
     if (args != null)
     {
         this.Args = args;
     }
     this.IsRef = isRef;
     this.Type  = type;
 }
Пример #9
0
 public ExprAlloc(SugarType type, List <string> name, List <Expr> expr_list, AllocType style)
 {
     this.Type = type;
     this.Name = name;
     if (expr_list != null)
     {
         this.ExprList = expr_list;
     }
     this.Style = style;
 }
Пример #10
0
 public ExprAlloc(SugarType type, List<string> name, List<Expr> expr_list, AllocType style)
 {
     this.Type = type;
     this.Name = name;
     if (expr_list != null)
     {
         this.ExprList = expr_list;
     }
     this.Style = style;
 }
Пример #11
0
 public GlobalAlloc(SugarType type, string name, Expr expr, List<Attr> attr, AllocType style)
 {
     this.Type = type;
     this.Name.Add(name);
     this.ExprList.Add(expr);
     if (attr != null)
     {
         this.Attribute = attr;
     }
     this.Style = style;
 }
Пример #12
0
 public ExprAlloc(SugarType type, string name, Expr expr, AllocType style)
 {
     this.Type = type;
     this.Name = new List <string> {
         name
     };
     this.ExprList = new List <Expr> {
         expr
     };
     this.Style = style;
 }
Пример #13
0
 public GlobalAlloc(SugarType type, string name, Expr expr, List <Attr> attr, AllocType style)
 {
     this.Type = type;
     this.Name.Add(name);
     this.ExprList.Add(expr);
     if (attr != null)
     {
         this.Attribute = attr;
     }
     this.Style = style;
 }
Пример #14
0
 public GlobalAlloc(SugarType type, List <string> name, List <Expr> expr_list, List <Attr> attr, AllocType style)
 {
     this.Type = type;
     this.Name = name;
     if (expr_list != null)
     {
         this.ExprList = expr_list;
     }
     if (attr != null)
     {
         this.Attribute = attr;
     }
     this.Style = style;
 }
Пример #15
0
 public GlobalAlloc(SugarType type, List<string> name, List<Expr> expr_list, List<Attr> attr, AllocType style)
 {
     this.Type = type;
     this.Name = name;
     if (expr_list != null)
     {
         this.ExprList = expr_list;
     }
     if (attr != null)
     {
         this.Attribute = attr;
     }
     this.Style = style;
 }
Пример #16
0
 public ExprCast(SugarType type, Expr expr)
 {
     this.Type = type;
     this.Expr = expr;
 }
Пример #17
0
 public StarType(SugarType type)
 {
     this.Type = type;
 }
Пример #18
0
 public RefType(SugarType type)
 {
     this.Type = type;
 }
Пример #19
0
 public Sugar(decimal quantity, DryMeasurement measurement, SugarType type)
 {
     Quantity    = quantity;
     Measurement = measurement;
     SugarType   = type;
 }
Пример #20
0
 public RefType(SugarType type)
 {
     this.Type = type;
 }
Пример #21
0
 public ExprCurryLambda(StmtBlock block, List<ExprAlloc> args, bool isRef, SugarType type)
 {
     this.Block = block;
     if (args != null)
     {
         this.Args = args;
     }
     this.IsRef = isRef;
     this.Type = type;
 }
Пример #22
0
 public GlobalTypeDef(SugarType type, string name)
 {
     this.Type = type;
     this.Name = name;
 }
Пример #23
0
 public ArrayType(SugarType type, List<Expr> args)
 {
     this.Type = type;
     if (args != null)
     {
         this.Args = args;
     }
 }
Пример #24
0
 public StmtTypeDef(SugarType type, string name)
 {
     this.Type = type;
     this.Name = name;
 }
Пример #25
0
 public ExprMatch(Expr expr, SugarType type, List<ExprMatchItem> list)
 {
     this.Expr = expr;
     this.Type = type;
     if (list != null)
     {
         this.List = list;
     }
 }
Пример #26
0
 public ExprListGeneration(SugarType type, StmtFor stmt_for, Expr expr)
 {
     this.For = stmt_for;
     this.Expr = expr;
     this.Type = type;
 }
Пример #27
0
 public ExprNewArray(SugarType type, List<Expr> args)
 {
     this.ElemType = type;
     if (args != null)
     {
         this.Args = args;
     }
 }
Пример #28
0
 public ExprListGeneration(SugarType type, StmtFor stmt_for, Expr expr)
 {
     this.For  = stmt_for;
     this.Expr = expr;
     this.Type = type;
 }
Пример #29
0
 public FuncType(List<SugarType> args, SugarType type)
 {
     this.Type = type;
     if (args != null)
     {
         this.Args = args;
     }
 }
Пример #30
0
 public StmtTypeDef(SugarType type, string name)
 {
     this.Type = type;
     this.Name = name;
 }
Пример #31
0
 public StarType(SugarType type)
 {
     this.Type = type;
 }
Пример #32
0
 public ExprCast(SugarType type, Expr expr)
 {
     this.Type = type;
     this.Expr = expr;
 }
Пример #33
0
 public GlobalTypeDef(SugarType type, string name)
 {
     this.Type = type;
     this.Name = name;
 }