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