Skip to main content

Module v2_eval

Module v2_eval 

Source
Expand description

v2 Evaluation Context and Functions for rulemorph v2.0

This module provides the evaluation context and functions for v2 expressions, including pipe value tracking, let bindings, and item/acc scopes.

Structs§

EvalItem
Item in a map/filter operation
V2EvalContext
v2 evaluation context - tracks pipe value, let bindings, and iteration scopes

Enums§

EvalValue
Evaluation result - either a value or missing

Functions§

eval_v2_condition
Evaluate a v2 condition - returns bool
eval_v2_expr
Evaluate a v2 expression
eval_v2_if_step
Evaluate a v2 if step - conditional branching
eval_v2_let_step
Evaluate a v2 let step - binds variables to context without changing pipe value
eval_v2_map_step
Evaluate a v2 map step - iterates over arrays
eval_v2_op_step
Evaluate a v2 op step with a pipe value as implicit first argument
eval_v2_pipe
Evaluate a v2 pipe expression
eval_v2_ref
Evaluate a v2 reference to get its value
eval_v2_start
Evaluate a v2 start value