math-ast

Crates.iomath-ast
lib.rsmath-ast
version0.2.0
sourcesrc
created_at2020-09-25 06:14:46.808212
updated_at2020-09-25 07:45:40.831257
descriptionmast ast for basic arithmetic operations
homepage
repositoryhttps://github.com/GalAster/math-ast
max_upload_size
id292746
size21,920
SasakiSaki (oovm)

documentation

README

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

Commit count: 1

cargo fmt