Skip to main content

Module unit

Module unit 

Source
Expand description

The interpreter’s run unit: rt::unit’s, holding each loaded program as its Compiled and calling through the Library.

Re-exports§

pub use crate::loader::AddProgram;
pub use crate::loader::Library;

Structs§

LoadedProgram
A program a loader found and compiled.

Enums§

Clock
Event
What a run did that its evidence journal records: each file as it is opened and closed, each program CALL loads, with the source it was read from when a library supplied it, and each operation an input could steer, with its operand as the program’s code page reads it.
LoadError

Constants§

ADDRESS_BASE
A pointer’s value is its offset into run-unit memory plus this, so that no item’s address is NULL.
MAX_DEPTH
How deep PERFORMs and CALLs may nest before the run abends, rather than exhaust the stack.
RETURN_CODE
RETURN-CODE, a halfword shared by every program in the run unit.

Traits§

Loader
Where CALL finds programs, and what the run unit needs to know about one it loaded.

Type Aliases§

Loaded
Observer
RunUnit