TbcParser is a VCL component that can be used with Borland Delphi and Borland C++ Builder.
TbcParser evaluates mathematical expressions given as strings at runtime.
Features are:
*Easy to use, simple API.
*Comes with predefined functions.
*Users can create custom functions/variables.
*Optimization: Constant expression elimination for repeated tasks.
*Analytical Operators: +, -, /, *, ^, %
*Logical Operators: <, >, =, &, |, !, <>, >=, <= [less, greater, equal, and, or, not, etc]
*Paranthesis: (, {, [
*Functions in the form of: f(x,y,z,...)
*List of predefined functions is available in the documentation.
*Java source code is included.
An example of a simple expression is : LN(X)+SIN(10/2-5)
When parsed, this expression will be represented as:
Thus, in a loop, if you change the value of X and ask for the value of the expression, it will be evaluated quite fast since SIN(10/2-5) is not dependent on X.
X and Y are predefined variables. You can create your own variables as needed.
There are many predefined mathematical functions. They are listed in documentation. You can create your own functions as needed.
Read more about TbcParser Math Parser Delphi Component here.
Platform: Windows

