mirror of
https://github.com/ArashPartow/exprtk.git
synced 2025-06-12 16:27:23 +00:00
C++ Mathematical Expression Library (ExprTk) http://www.partow.net/programming/exprtk/index.html
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user