Skip to main content

Crate nomiscript

Crate nomiscript 

Source

Re-exports§

pub use compiler::CompileMode;
pub use compiler::Compiler;
pub use host_fn::HostFnSpec;
pub use runtime::Closure;
pub use runtime::ENTITY_LAYOUTS;
pub use runtime::EntityFieldKind;
pub use runtime::EntityFieldLayout;
pub use runtime::EntityLayout;
pub use runtime::Fraction;
pub use runtime::Pair;
pub use runtime::Symbol;
pub use runtime::SymbolKind;
pub use runtime::SymbolTable;
pub use runtime::Value;
pub use runtime::entity_layout;
pub use runtime::entity_layout;
pub use runtime::format_value;
pub use runtime::list_to_vec;
pub use runtime::vec_to_list;

Modules§

compiler
host_fn
Caller-supplied native function specifications.
runtime

Structs§

Annotation
Program
Reader

Enums§

EntityKind
Kind tag for one server-entity wasm struct. Each variant maps to a concrete $<kind> GC struct registered in CompileContext::new_skeleton, plus a set of typed field accessors in the native registry. Adding an entity adds one variant here + one row in the nomi_entity! macro invocation; the compiler and host-side allocators pick up the rest by expansion.
Error
Expr
PairElement
Element type of a homogeneous $pair chain. Tracked at compile time so CAR/CDR emit the right downcast and CONS refuses heterogeneous mixing with a structured type error. Kept as a Copy enum so WasmType stays Copy — and so adding a new element type stays a one-line variant addition. Nesting (pairs-of-pairs) waits for a follow-up sub-slice once flat lists are stable across the consumers.
WasmType

Constants§

GIT_REVISION

Functions§

eval_program

Type Aliases§

Result