From ecc414d2ffd0540c2f6902a61b25a1fd10475242 Mon Sep 17 00:00:00 2001 From: Arash Partow Date: Sat, 11 Feb 2017 20:37:14 +1100 Subject: [PATCH] C++ Mathematical Expression Library (ExprTk) http://www.partow.net/programming/exprtk/index.html --- readme.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/readme.txt b/readme.txt index c2a9689..ee212de 100644 --- a/readme.txt +++ b/readme.txt @@ -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