Beispiel #1
0
 public SimplifyVisitor(CostVisitor Cost)
 {
     cost = Cost;
 }
Beispiel #2
0
 /// <summary>
 /// Simplify expression x.
 /// </summary>
 /// <param name="x"></param>
 /// <returns></returns>
 public static Expression Simplify(this Expression x, CostVisitor Cost)
 {
     return(new SimplifyVisitor(Cost).Visit(x));
 }