2 unstable releases
0.2.0 | Sep 25, 2020 |
---|---|
0.1.0 | Sep 25, 2020 |
#93 in #arithmetic-operations
Used in game24
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