public static void Rule(Expression result, Expression expression, ExpressionOperator op, Term term) { result.Value = op.Function(expression.Value, term.Value); }
public static void Rule(ExpressionOperator result, OperatorSubtraction op) { result.Function = (lhs, rhs) => lhs - rhs; }
public static void Rule(ExpressionOperator result, OperatorSubtraction op) { result.Function = (lhs, rhs) => lhs - rhs; }
public static void Rule(ExpressionOperator result, OperatorAddition op) { result.Function = (lhs, rhs) => lhs + rhs; }
public static void Rule(ExpressionOperator result, OperatorAddition op) { result.Function = (lhs, rhs) => lhs + rhs; }