Skip to main content

Crate keleusma

Crate keleusma 

Source

Re-exports§

pub use kstring::KString;
pub use bytecode::CostModel;
pub use bytecode::Module;
pub use bytecode::NOMINAL_COST_MODEL;
pub use bytecode::VALUE_SLOT_SIZE_BYTES;
pub use bytecode::Value;
pub use bytecode::nominal_op_cycles;
pub use marshall::IntoFallibleNativeFn;
pub use marshall::IntoNativeFn;
pub use marshall::KeleusmaType;
pub use vm::NativeCtx;
pub use vm::VmError;

Modules§

ast
audio_natives
Built-in audio and math native functions.
bytecode
compiler
kstring
Arena-backed dynamic-string handle for the Keleusma runtime.
lexer
marshall
Static marshalling between Rust types and the runtime Value enum.
monomorphize
Compile-time monomorphization for generic functions.
parser
target
Target descriptor for cross-architecture portability.
token
typecheck
Static type checker for Keleusma source programs.
utility_natives
verify
visitor
AST visitor traits with default-implemented structural walks.
vm

Structs§

Arena
A dual-end bump-allocated arena.
ArenaHandle
Lifetime-free safe handle to a value stored in an arena.
BottomHandle
Allocation handle for the bottom end of an arena.
Budget
A worst-case memory usage budget.
EpochSaturated
Hard halt error returned by Arena::reset when the epoch counter would saturate.
Stale
Error returned by ArenaHandle::get when the arena has been reset since the handle was issued.
TopHandle
Allocation handle for the top end of an arena.

Derive Macros§

KeleusmaType
Derive keleusma::KeleusmaType for a struct or enum.