[Feature Request & Patch] Add symbol ^ to fpexpressionparser (power)
Original Reporter info from Mantis: wp @wpam
-
Reporter name:
Original Reporter info from Mantis: wp @wpam
- Reporter name:
Description:
The FpExpressionParser is lacking a symbol for calculation of power expressions. The attached patch introduces the symbol ^ for this purpose.
Example
parser.Exression := '2^3'; // ---> power(2, 3)
Additional information:
I am not familiar with the fpc test suite. So, I just added a simple demo checking the important cases which come to my mind.
Mantis conversion info:
- Mantis ID: 30970
- Version: 3.1.1
- Fixed in version: 3.1.1
- Fixed in revision: 34967 (#ba352785)
- Target version: 3.2.0