Expand description
Binding, evaluation, validation, and serialization — a port of the reference implementation’s engine.ts. Semantics are the spec’s: lazy slots with cycle detection, taint / root-cause diagnostics, $referrers universe ordering, canonical JSON output.
Structs§
- Deferred
Root - a root binding kept for phase 2 (its source owned)
- Engine
- the evaluator (§9): binds documents and expressions to types, forces slots lazily with dependency tracking, validates, serializes
- Settled
- what one round found: whether the queried edges were stable, and what they are
- Snap
- the universe a round answers from
Enums§
- Owned
Root Src - what a deferred root is bound from, owned
- RootSrc
- what an evaluation root is bound from: an output’s expression, or an input’s document (bound as-is)
Functions§
- fmt_f
- The canonical text of a float in a document (§10.4): the shortest round trip,
a
.0on a whole number, JavaScript’s exponent form.
Type Aliases§
- Inst
- a record instance, shared: the engine’s unit of binding and forcing