Skip to main content

compile_completion

Function compile_completion 

Source
pub fn compile_completion(
    stmts: &[Stmt],
    debug: bool,
) -> Result<Program, String>
Expand description

Compile leaving the value of the final top-level expression statement on the stack (the program’s completion value), for eval/vm.runInThisContext. A non-expression final statement leaves nothing (→ undefined).