Handles all arithmetic, all D numbers, predefined constants and functions.
Public Types | |
| typedef real | function (double v) FuncED |
| A custom function that takes a single double and returns a real. | |
| typedef real | function (double a, double b) FuncEDD |
| A custom function that takes two doubles and returns a real. | |
Public Member Functions | |
| void | define (char[] name, float value) |
| Define a constant. | |
| void | define (char[] name, FuncED func) |
| Define a function which takes a single double argument. | |
| void | define (char[] name, FuncEDD func) |
| Define a function which takes two doubles as arguments. | |
| void | predefineMath () |
| Define various mathematics expressions. | |
| bit | eval (char[] text, out float value) |
| Evaluate and set the result in value, or return false if the operation could not be completed. | |
| void | skipSpaces (inout char *s, char *e) |
| Skip all spaces. | |
|
||||||||||||
|
Evaluate and set the result in value, or return false if the operation could not be completed. value may still hold some kind of value. |
1.3.2