use std::fmt::Debug; #[derive(Debug, PartialEq, Clone)] pub enum Node { Number(f64), Expr(Box, Operator, Box), Function(String, Box), Const(String), AssignConst(String, Box), AssignFunc(String, String, Box), } #[derive(Debug, PartialEq, Clone)] pub enum Operator { Plus, Minus, Mult, Div, Pow, }