Crate rush_interpreter_vm

Source

Structs§

Compiler
Diagnostic
RuntimeError
Vm

Enums§

Instruction
RuntimeErrorKind
Value

Functions§

compile
Compiles rush source code to VM instructions. The Ok(_) variant is a [CompilationResult] which also includes any non-error diagnostics. The Err(_) variant returns a Vec<Diagnostic> which contains at least one error.
debug_run
Executes the given program using the VM on debug mode. The Ok(_) variant also returns non-error diagnostics. The Err(_) variant returns a Vec<Diagnostic> which contains at least one error.
run
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.