Crate single_variable_algebra_compiler

Crate single_variable_algebra_compiler 

Source

Modules§

math_trick

Structs§

BinaryAlgebraicExpressionTree
The main struct of this crate. A binary algebraic expression tree is a TreeNode.
TestCase
A TestCase is useful for unit testing in mod tests.

Enums§

TreeNode

Functions§

apply_algebra_to_tree_node
Calculate the result of a binary tree.
create_expression
Converts a binary tree back to a String like 3*x+5.
level_order_to_array
parse_expression
Converts a String like 3*x+5 to a binary tree.
read_terminal_input
For CLI.