Пример #1
0
 public static Expr Make(Expr left, Expr right)
 {
     return(new Addition(left, right));
 }
Пример #2
0
 public BinaryExpr(Expr arg1, Expr arg2)
 {
     _left  = arg1;
     _right = arg2;
 }
Пример #3
0
 public Addition(Expr arg1, Expr arg2) : base(arg1, arg2)
 {
 }
Пример #4
0
 public ExprBuilder Mult(int arg)
 {
     _expr = new Multiplication(_expr, Constant.Make(arg));
     return(this);
 }
Пример #5
0
 public ExprBuilder Plus(int arg)
 {
     _expr = new Addition(_expr, Constant.Make(arg));
     return(this);
 }
Пример #6
0
 public ExprBuilder Const(int arg)
 {
     _expr = Constant.Make(arg);
     return(this);
 }
Пример #7
0
 public static Expr Make(Expr left, Expr right)
 {
     return(new Multiplication(left, right));
 }
Пример #8
0
 public Multiplication(Expr arg1, Expr arg2) : base(arg1, arg2)
 {
 }