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