Expression Parser?

  • Thread starter Thread starter Boris Nienke
  • Start date Start date
B

Boris Nienke

Hello,

i'm looking for an expression parser.
I would like to do something like:

string MyExpr = "(25+3) / 7 * (SQRT(32) + 3.21";
MyResult = ExprParser(MyExpr);

MyResult should be a double or float or something that holds the calculated
result of the expression.

Any idea?

Boris
 
Boris Nienke said:
Hello,

i'm looking for an expression parser.
I would like to do something like:

string MyExpr = "(25+3) / 7 * (SQRT(32) + 3.21";
MyResult = ExprParser(MyExpr);

MyResult should be a double or float or something that holds the calculated
result of the expression.

Any idea?

Boris

Try VisualParse.

http://www.sand-stone.com/
 
Hi Boris,

Try Cioina.DLL which supports C#
http://www.delphipages.com/result.cfm?ID=3482

DESCRIPTION: Cioina.DLL can parse, evaluate and differentiate a
mathematical expression given as a string.

MAIN FEATURES:

* accept operators: + - * / ^ = ~

* accept user defined functions and constants (maximum 65400)

* functions accept any number of parameters (maximum 2147483647)

* functions accept varying number of parameters

* includes common math functions and constants (82 built-in)

* supports "if" and "while" functions

* supports boolean expressions

* fast evaluation (the expression can be evaluated quickly for
different variable values)

* error handling with localizing points of failure

* optimized calculations (constant parts of expression are calculated)

* parsed expression can be retrieved (added parenthesis)

* expression can be differentiated

* can export to Mathematica 4.x/5.x form

* can parse an expression array

* cross-platform compilation (Windows-Linux)

* variables automatic check possibility

* defines functions on runtime.

* space like multiplication operator.

* built-in small help

* exception control

* full support for D5, D6, D7, CLX2, CLX3, C++Builder6, C#.

* full sources and demos(TCioinaEval,CioinaMathLink, CioinaEvalOLE,
Cioina.DLL)

* update service
 
Back
Top