Project Description
Light weight expression parser for parsing dynamical expression string to lambda expression. 

Features:

  • Math calculation   
  • Logical calculation 
  • Bit-wise calculation
  • Conditional operation.   ex, (a==b)?  "true_value"  :  "false_value"
  • Support parameters in expression  
  • Support User and ASP.Net data type, object, method property and field in expression
  • Support both static and instance method, property and field 
  • Compatible with C# expression and statement syntax

Example:

       

using Simpro.Expr;

ExprParser ep = new ExprParser();
LambdaExpression lambda = ep.Parse("(int x, y) => 10 * ( x + 1 ) - y");
int result = (int) ep.Run(lambda, 10, 20);

       

 

 

 

 

 

See [User Guide] from Downloads menu.

 

Environment:  

  • .Net Framework 4.0

Contacts: simpro.expr@gmail.com

Last edited Oct 21, 2011 at 9:57 PM by simpro, version 25