Skip to main content

Crate nomiscript

Crate nomiscript 

Source

Re-exports§

pub use compiler::CompileMode;
pub use compiler::Compiler;
pub use compiler::PROLOGUE_DONE_EXPORT;
pub use compiler::global_export_name;
pub use compiler::instance_export_name;
pub use host_fn::HostFnSpec;
pub use runtime::Carried;
pub use runtime::Closure;
pub use runtime::ClosureSource;
pub use runtime::ENTITY_LAYOUTS;
pub use runtime::EntityFieldKind;
pub use runtime::EntityFieldLayout;
pub use runtime::EntityLayout;
pub use runtime::Found;
pub use runtime::Fraction;
pub use runtime::Pair;
pub use runtime::Rebind;
pub use runtime::Slot;
pub use runtime::StructInstance;
pub use runtime::Symbol;
pub use runtime::SymbolKind;
pub use runtime::SymbolTable;
pub use runtime::UnitSlot;
pub use runtime::Value;
pub use runtime::entity_layout;
pub use runtime::entity_layout;
pub use runtime::format_amount;
pub use runtime::format_value;
pub use runtime::format_value_display;
pub use runtime::format_value_plain;
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
StructId
Index of a DEFSTRUCT layout in the session’s struct registry. Rides inside WasmType like ClosureSigId, so it stays small and Copy.

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
Number
A numeric literal: its kind is the spelling the reader saw, so an integer token is an Index and a decimal, fraction or percent a Scalar, even a whole one.
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§

MAX_READ_DEPTH
Nesting the reader accepts before refusing the input.

Functions§

eval_program
format_form
Prints a user form for a diagnostic, strings quoted at any depth.

Type Aliases§

Result