Crate math_expression_parser

Crate math_expression_parser 

Source

Structs§

Grammar

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 Expr AST.