2 unstable releases
0.2.0 | Sep 25, 2020 |
---|---|
0.1.0 | Sep 25, 2020 |
#69 in #arithmetic-operations
27 downloads per month
Used in 2 crates
8KB
123 lines
Math AST
Basic
pub enum AST<T> {
Number(T),
Factorial(Box<AST<T>>),
Plus(Box<AST<T>>, Box<AST<T>>),
Minus(Box<AST<T>>, Box<AST<T>>),
Times(Box<AST<T>>, Box<AST<T>>),
Divide(Box<AST<T>>, Box<AST<T>>),
Power(Box<AST<T>>, Box<AST<T>>),
Surd(Box<AST<T>>, Box<AST<T>>),
Connect(Box<AST<T>>, Box<AST<T>>),
}
Todo list
Dependencies
~490KB
~10K SLoC