Module evaluator

Source
Expand description

Expression evaluation functions with unit-aware arithmetic

Functionsยง

evaluate_expression_with_context
Main evaluation function that handles context for line references
evaluate_tokens_stream_with_context
Find and evaluate mathematical patterns in a token stream
evaluate_tokens_with_units_and_context
Evaluate tokens with unit-aware arithmetic and context support
evaluate_with_variables
Enhanced evaluation function that handles both expressions and variable assignments
parse_and_evaluate_with_context
Parse and evaluate with context for line references
parse_result_string
Parse a result string back into a UnitValue
resolve_line_reference
Resolve a line reference to its calculated result