Crates.io | math-ast |
lib.rs | math-ast |
version | 0.2.0 |
source | src |
created_at | 2020-09-25 06:14:46.808212 |
updated_at | 2020-09-25 07:45:40.831257 |
description | mast ast for basic arithmetic operations |
homepage | |
repository | https://github.com/GalAster/math-ast |
max_upload_size | |
id | 292746 |
size | 21,920 |
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>>),
}