Function run

Source
pub fn run(ast: AnalyzedProgram<'_>) -> Result<i64, RuntimeError>
Expand description

Executes the given program using the VM. The Ok(_) variant also returns non-error diagnostics. The Err(_) variant returns a Vec<Diagnostic> which contains at least one error.