| 1 | [[TracNav(TracNav/TOC_Development)]] |
| 2 | = Expression Parser = |
| 3 | This function can parse any string containing a mathematical expression like {{{"2 * (34+1)/2 *sin(pi*3)/cosh(7)"}}}. [[br]] |
| 4 | Usage: Pass a std::string to the constructor and the ExprParser will parse an expression that equals one number. That means that {{{"3 4"}}} will yield 3. Then you can use the following query functions: |
| 5 | || getRemains() || Returns the rest of the string that did get parsed || |
| 6 | || getResult() || Query the result of the parsing || |
| 7 | || getSuccess() || Tells whether any number could be retrieved at all || |