Module engine

Source

Functionsยง

interp
Interprets a string as a mathematical expression, evaluates it, and returns the result.
parse_expression
Parse an expression string into an AST using the Pratt parser. Returns a Result with either the parsed AST or an error explaining what went wrong.
parse_expression_with_context
parse_expression_with_reserved