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§
- Eval
Item - Item in a map/filter operation
- V2Eval
Context - v2 evaluation context - tracks pipe value, let bindings, and iteration scopes
Enums§
- Eval
Value - 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