public static void Rule(TermOperator result, OperatorDivision op) { result.Function = (lhs, rhs) => lhs / rhs; }
public static void Rule(TermOperator result, OperatorMultiplication op) { result.Function = (lhs, rhs) => lhs * rhs; }
public static void Rule(Term result, Term term, TermOperator op, Factor factor) { result.Value = op.Function(term.Value, factor.Value); }
public static void Rule(TermOperator result, OperatorDivision op) { result.Function = (lhs, rhs) => lhs / rhs; }
public static void Rule(TermOperator result, OperatorMultiplication op) { result.Function = (lhs, rhs) => lhs * rhs; }
public static void Rule(Term result, Term term, TermOperator op, Factor factor) { result.Value = op.Function(term.Value, factor.Value); }