Skip to main content

Module text

Module text 

Source
Expand description

Lossless canonical text for the scene-data subset of Expr.

Scenes are pure data, so codec:scene serializes them through the codec-neutral portable value form that lives in sim-codec (shared with codec:intent and any other domain codec that must round-trip data without borrowing a general codec’s grammar). This module re-exports that form under the names codec:scene uses.

Functions§

decode
Parse codec-neutral portable text back into an Expr, failing closed on any malformed input rather than panicking.
encode
Serialize a data-subset Expr into the codec-neutral portable text form.