Skip to main content

eval_value_vm

Function eval_value_vm 

Source
pub fn eval_value_vm(ctx: &EvalContext, expr: &Value, env: &Env) -> EvalResult
Expand description

VM-native evaluation for callback consumers (e.g. sema-llm tool handlers): macro-expand, compile, and run expr on a fresh bytecode VM rooted at env. This is the VM-backed counterpart of eval_value, used to keep the eval-callback path off the tree-walker (M5 / Phase 1c). Each call builds a throwaway VM over a clone of env (sharing its bindings), so it is suited to one-shot evaluation rather than a persistent define-accumulating session.