Expand description
Bidirectional conversion between bytecode VM values and tree-walker values. Bidirectional conversion between bytecode VM values and tree-walker values.
The bytecode VM (sui_bytecode) uses VMValue / StringKeyedValue,
while the tree-walker (sui_eval) uses Value / NixAttrs. This module
bridges the two representations so that the VM can be wired as an
alternative evaluation backend.
Functions§
- eval_
to_ vm - Convert a tree-walker
Valueto aVMValuefor consumption by the VM. - string_
keyed_ to_ eval - Convert a
StringKeyedValue(from the bytecode VM) to a tree-walkerValue. - vm_
to_ eval - Convert a
VMValue(with interned keys) to a tree-walkerValue.