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();
53
53
set_variables_and_functions(const std::set<te_variable>& vars); // <3>
54
54
std::set<te_variable>& get_variables_and_functions();
55
55
add_variable_or_function(const te_variable& var);
56
+ remove_variable_or_function(te_variable::name_type var);
57
+ remove_unused_variables_and_functions();
56
58
set_unknown_symbol_resolver(te_usr_variant_type usr); // <4>
57
59
get_decimal_separator(); // <5>
58
60
set_decimal_separator(); // <5>
@@ -66,7 +68,8 @@ is a parse error, then it returns NaN (which can be verified by using `std::isna
66
68
2 . ` get_result() ` can be called anytime afterwards to retrieve the result from ` evaluate() ` .
67
69
68
70
3 . ` 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.
70
73
71
74
4 . ` set_unknown_symbol_resolver() ` is used to provide a custom function to resolve unknown symbols in an expression.
72
75
(Refer to [ ch. -@sec-usr ] for further details.)
You can’t perform that action at this time.
0 commit comments