예제 #1
0
 public SubtractExpression(AleaExpression left, AleaExpression right)
     : base(left, right, (a, b) => a.Evaluate() - b.Evaluate())
 {
 }
예제 #2
0
 public AddExpression(AleaExpression left, AleaExpression right)
     : base(left, right, (a, b) => a.Evaluate() + b.Evaluate())
 {
 }
예제 #3
0
 public MultiplyExpression(AleaExpression left, AleaExpression right)
     : base(left, right, (a, b) => a.Evaluate() * b.Evaluate())
 {
 }
예제 #4
0
 protected BinaryExpression(AleaExpression left, AleaExpression right)
 {
     Left  = left;
     Right = right;
 }
예제 #5
0
 public OperatorExpression(AleaExpression left, AleaExpression right, Func <AleaExpression, AleaExpression, double> evaluator)
     : base(left, right)
 {
     Evaluator = evaluator;
 }
예제 #6
0
 public DivideExpression(AleaExpression left, AleaExpression right)
     : base(left, right, (a, b) => a.Evaluate() / b.Evaluate())
 {
 }