File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,8 @@ std::string get_last_error_message();
5353set_variables_and_functions(const std::set<te_variable>& vars); // <3>
5454std::set<te_variable>& get_variables_and_functions();
5555add_variable_or_function(const te_variable& var);
56+ remove_variable_or_function(te_variable::name_type var);
57+ remove_unused_variables_and_functions();
5658set_unknown_symbol_resolver(te_usr_variant_type usr); // <4>
5759get_decimal_separator(); // <5>
5860set_decimal_separator(); // <5>
@@ -66,7 +68,8 @@ is a parse error, then it returns NaN (which can be verified by using `std::isna
66682 . ` get_result() ` can be called anytime afterwards to retrieve the result from ` evaluate() ` .
6769
68703 . ` set_variables_and_functions() ` , ` get_variables_and_functions() ` , and ` add_variable_or_function() ` are used
69- to add custom variables and functions to the parser.
71+ to add custom variables and functions to the parser. Likewise, ` remove_variable_or_function() ` and ` remove_unused_variables_and_functions() `
72+ are used to remove them.
7073
71744 . ` set_unknown_symbol_resolver() ` is used to provide a custom function to resolve unknown symbols in an expression.
7275(Refer to [ ch. -@sec-usr ] for further details.)
You can’t perform that action at this time.
0 commit comments