Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Initial Version and Version 1 of code/doc/ExprParser


Ignore:
Timestamp:
Oct 7, 2008, 6:13:01 PM (11 years ago)
Author:
rgrieder
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • code/doc/ExprParser

    v1 v1  
     1[[TracNav(TracNav/TOC_Development)]]
     2= Expression Parser =
     3This function can parse any string containing a mathematical expression like {{{"2 * (34+1)/2 *sin(pi*3)/cosh(7)"}}}. [[br]]
     4Usage: 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 ||