#ast #basic #connect #operations #arithmetic-operations #surd

nightly math-ast

mast ast for basic arithmetic operations

2 unstable releases

0.2.0 Sep 25, 2020
0.1.0 Sep 25, 2020

#61 in #arithmetic-operations

28 downloads per month
Used in 2 crates

MPL-2.0 license

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

~495KB
~10K SLoC