Skip to main content

evaluate_expr

Function evaluate_expr 

Source
pub fn evaluate_expr(expr: &Expr, ctx: &mut EvalCtx<'_>) -> Value
Expand description

Walk an expression tree and produce a Value.

Variables are resolved from ctx.ctx; functions are dispatched through ctx.registry. Eager functions receive pre-evaluated arguments; lazy functions (e.g. IF) receive raw Expr nodes and control their own evaluation order.