Expand description
Scene value model: builders, accessors, and fail-closed validation.
A Scene is a SIM value (an Expr tree) built from open maps tagged with a
kind symbol. This module never introduces a parallel data model; it only
provides ergonomic constructors over Expr and a validator that turns a
malformed scene into a structured SceneError (a path plus a message)
rather than a panic.
Structs§
- Scene
Error - A structured scene validation diagnostic: where the problem is and what it
is.
pathis a human-readable address into the scene tree (for examplenodes[0].kind);messagedescribes the violation.
Functions§
- map
- Build a plain data map from string-keyed entries (keys become
core-less symbols). Usenodeto build a tagged scene node. A map value from string-keyed entries (keys become unqualified symbols). - node
- Build a scene node: an
Expr::Mapwhose first entry iskind: scene/<name>followed byentries. - node_
kind - If
expris a map tagged with a symbolkind, return that kind symbol. - validate_
scene - Validate that
expris a well-formed scene, failing closed with aSceneErrorotherwise.