Пример #1
0
 public static void Rule(TermOperator result, OperatorDivision op)
 {
     result.Function = (lhs, rhs) => lhs / rhs;
 }
Пример #2
0
 public static void Rule(TermOperator result, OperatorMultiplication op)
 {
     result.Function = (lhs, rhs) => lhs * rhs;
 }
Пример #3
0
 public static void Rule(Term result, Term term, TermOperator op, Factor factor)
 {
     result.Value = op.Function(term.Value, factor.Value);
 }
Пример #4
0
 public static void Rule(TermOperator result, OperatorDivision op)
 {
     result.Function = (lhs, rhs) => lhs / rhs;
 }
Пример #5
0
 public static void Rule(TermOperator result, OperatorMultiplication op)
 {
     result.Function = (lhs, rhs) => lhs * rhs;
 }
Пример #6
0
 public static void Rule(Term result, Term term, TermOperator op, Factor factor)
 {
     result.Value = op.Function(term.Value, factor.Value);
 }