Structs§
Enums§
- Expr
- The enum represents numbers, binary operations (add, sub, mul, div, pow, root, log), and unary functions (sin, cos, tan, exp, ln).
- Rule
Functions§
- eval_
expr - Evaluate a previously parsed
Expr. - parse_
and_ eval - Convenience: parse the input, evaluate it, and append the result to
res.txt. - parse_
expression - Parse the input string into an
ExprAST.