C++ Mathematical Expression Library (ExprTk) https://www.partow.net/programming/exprtk/index.html

This commit is contained in:
Arash Partow 2017-02-11 20:37:14 +11:00
parent b5ec0fec2d
commit b37321d094
1 changed files with 5 additions and 2 deletions

View File

@ -885,11 +885,14 @@ version using ExprTk:
foo.register_symbol_table(symbol_table);
parser_t parser;
if (parser.compile(foo_str,foo))
if (!parser.compile(foo_str,foo))
{
foo.value();
// Error in expression...
return;
}
T result = foo.value();
(3) Parser
A component which takes as input a string representation of an