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§
Structs§
- Annotation
- Program
- Reader
- Struct
Id - Index of a
DEFSTRUCTlayout in the session’s struct registry. Rides insideWasmTypelikeClosureSigId, so it stays small andCopy.
Enums§
- Entity
Kind - Kind tag for one server-entity wasm struct. Each variant maps to a
concrete
$<kind>GC struct registered inCompileContext::new_skeleton, plus a set of typed field accessors in the native registry. Adding an entity adds one variant here + one row in thenomi_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
Indexand a decimal, fraction or percent aScalar, even a whole one. - Pair
Element - Element type of a homogeneous
$pairchain. Tracked at compile time so CAR/CDR emit the right downcast and CONS refuses heterogeneous mixing with a structured type error. Kept as aCopyenum soWasmTypestaysCopy— 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. - Wasm
Type
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.