Lines
100 %
Functions
Branches
//! Symbol table and entries.
//!
//! Split by responsibility:
//! - [`entry`] — the `Symbol` struct + `SymbolKind`.
//! - [`table`] — the `SymbolTable` struct and core read/write API
//! (`define`, `lookup`, `register_host_fns`, test/coverage state).
//! - [`builtins`] — `register_builtins` + entity constants/accessors
//! + map-family macros.
//! - [`stdlib`] — `when`/`unless`/`upcase` essentials. Runs after `register_builtins`.
mod builtins;
mod builtins_generated;
mod carry;
mod closure_deps;
mod closure_records;
mod closures;
mod deferred;
mod define;
mod definitions;
mod entry;
mod eval_blocks;
mod guards;
mod homes;
mod instances;
mod journal;
mod local_aliases;
mod lost_reads;
mod rebind;
mod regions;
mod registry;
mod resolve;
mod scope;
mod stdlib;
mod structs;
mod table;
#[cfg(test)]
mod cells_tests;
mod closure_deps_tests;
mod closure_records_tests;
mod digest;
mod kept_lexicals_tests;
mod local_aliases_tests;
mod stdlib_tests;
mod tests;
pub use carry::Carried;
pub(crate) use carry::is_list_source;
pub use closures::ClosureSource;
pub use definitions::{Slot, UnitSlot};
pub use entry::{Symbol, SymbolKind};
pub(crate) use guards::with_sufficient_stack;
pub(crate) use homes::{Asked, CellBinding, ClosureShape, HomeKey, Seed};
pub use instances::{Found, StructInstance};
pub(crate) use journal::SymbolJournal;
pub use rebind::Rebind;
pub(crate) use regions::{ExitRegion, FormId, form_id};
pub(crate) use resolve::Head;
pub(crate) use stdlib::DOTIMES_COUNT;
pub(crate) use structs::StructLayout;
pub(crate) use table::MAX_SHARED_RECURSION_DEPTH;
pub use table::SymbolTable;
/// The native builtin names registered from the org-tangled registry
/// (`builtins_generated::NATIVES`). Exposed so the native-dispatch
/// registry test can assert every documented native actually has a
/// codegen handler — the guard that catches "phantom natives" (a name
/// the reader accepts but codegen rejects with "not yet implemented").
#[must_use]
pub(crate) fn registered_native_names() -> &'static [&'static str] {
builtins_generated::NATIVES
}