Skip to main content

compile

Function compile 

Source
pub fn compile<'a, G>(
    get_node: GetNode<'a>,
    graph: G,
    vm: &mut Engine,
    entrypoints: &[Entrypoint],
    config: &Config,
) -> Result<Compiled, CompileError>
Expand description

Compile the graph into a Steel module and run it in the VM.

The module runs as a single program so that the engine registers Compiled::src verbatim as one source: subsequent steel errors then carry spans whose offsets index into it directly (see steel_err_node).