Module lovm2::vm[][src]

Runs modules and maintains program state

Structs

Context

The state of the virtual machine

Frame

A stack frame used in Context.lstack

LoadRequest

Structure containing relevant information for module resolvement.

Vm

VM structure containing hooks and loaded modules

Constants

LOVM2_INT_DEBUG
LOVM2_RESERVED_INTERRUPTS

Functions

find_candidate

Takes a LoadRequest and calls find_module to search for possible candidates relative to the current module.

find_module

Search for a name inside the given directories. This strips the file extension and compares the file stem.

get_lovm2_user_dir

Type Definitions

ImportHookFn

Function signature for Callable importing.

InterruptFn

Function signature of interrupts.

LoadHookFn

Virtual machine for executing modules