The AST parser is currently being worked on
After it's done, the final AST should be represented in a single Expr composed of components from the Expr enum listed below
pub enum Expr {
Number(f64),
Variable(String),
Constant(Constants),
Function(Functions, Box<Expr>),
BinaryOp(Operators, Box<Expr>, Box<Expr>),
}
The polynomial struct for this should look something like
struct PolynomialAST {
Expr: Expr
}