Reference for unit 'fpExprPars'¶
Provides expression parsing with support for variables, functions, and mathematical operations
uses
| Used units | Description |
|---|---|
| System | |
| Classes | |
| sysutils | |
| Contnrs | Various general purpose classes: stack, queue, objectlists. |
Overview¶
This unit implements an expression parser and evaluator that supports a wide variety of data types, mathematical operations, and built-in functions. It provides the infrastructure for parsing and evaluating mathematical expressions with support for variables, functions, and complex data types.
The parser supports the following features:
- Multiple data types: integers, floats, strings, booleans, dates, and currency
- Standard mathematical operators: +, -, *, /, mod, power
- Comparison operators: =, <>, <, >, <=, >=
- Logical operators: and, or, xor, not
- Built-in mathematical, string, and date/time functions comparable to what exists in the SysUtils unit.
- Variable and function definitions
- Conditional expressions (if-then-else)
- Aggregate functions for data processing
The unit is designed to be extensible, allowing custom functions and variables to be registered with the parser for specialized applications.