Skip to content

Commit 50a48b7

Browse files
committed
Documen remove_unused_variables_and_functions()
Closes #24
1 parent 3476100 commit 50a48b7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/manual/usage.qmd

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ std::string get_last_error_message();
5353
set_variables_and_functions(const std::set<te_variable>& vars); // <3>
5454
std::set<te_variable>& get_variables_and_functions();
5555
add_variable_or_function(const te_variable& var);
56+
remove_variable_or_function(te_variable::name_type var);
57+
remove_unused_variables_and_functions();
5658
set_unknown_symbol_resolver(te_usr_variant_type usr); // <4>
5759
get_decimal_separator(); // <5>
5860
set_decimal_separator(); // <5>
@@ -66,7 +68,8 @@ is a parse error, then it returns NaN (which can be verified by using `std::isna
6668
2. `get_result()` can be called anytime afterwards to retrieve the result from `evaluate()`.
6769

6870
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.
7073

7174
4. `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.)

0 commit comments

Comments
 (0)