Module stagel3

Module stagel3 

Source
Expand description

StageL 3 (f656 -> f659 .sli3) and StageR 3 (f657 -> f660 .sri3) source normalizer, AST parser, static validator, Token-Dc codec, and inline test evaluator.

See src/formats/stagel/docs/sl3.md and src/formats/stagel/docs/sr3.md for the full language and intermediate-format specifications.

Modules§

ast
Abstract syntax tree definitions for StageL 3 (f656 .sl3) and StageR 3 (f657 .sr3).
dc_tokens
Bidirectional converter between StageL 3 / StageR 3 AST (.sl3 / .sr3) and Token Document Characters (DcChar stream).
eval
Deterministic reference evaluator and inline test runner for validated StageL 3 (f656 .sl3) and StageR 3 (.sr3) modules and workspaces.
parser
Direct parser for StageL 3 (.sl3) and StageR 3 (.sr3) source modules.
rust_codegen
Direct StageL 3 (f656 .sl3) to Rust transpiler for semantic smoke and static-validity cross-checking against rustc and clippy.
seed_linker
Snapshot-pinned StageL 3 linker resolving external PSR-4 use namespaces and transitive dc/<shorthand> Token-Dc helpers directly from a SeedGraphIndex.
stager_strings
Mixed-mode (s / DcMst) and pure-Dc (dcs) string semantics for StageR 3.
validator
Static semantic, totality, definite-assignment, linear-buffer, cycle, and cross-module use / PSR-4 validation for StageL 3 (.sl3) and StageR 3 (.sr3) modules.
wasm_codegen
StageL 3 (f656 .sl3 and StageL Token Dcs) compiler to .WASM (Dc 1927..Dc 1928) and WebAssembly binary modules, linking Stage 0 .WASM built-in primitives from the System seed graph (Dc 646).

Enums§

StageDialect
Dialect selector controlling StageL 3 vs StageR 3 source normalization, parsing, validation, and Token Dc serialization.

Functions§

decode_sli3_byte_literal_body
Decodes the normalized interior bytes (between opening " and closing ") of a .sli3 B"..." or .sri3 "..." literal back into raw payload bytes.
is_sli3_byte
Returns true iff b belongs to the 32-character StageL 3 intermediate alphabet (A-Z, /, :, ' ', '\n', '"', '.').
normalize
Normalizes StageL 3 (.sl3 -> .sli3) source bytes into the 32-character StageL 3 intermediate alphabet (A-Z, /, :, space, newline, ", .).
normalize_stager3
Normalizes StageR 3 (.sr3 -> .sri3) source bytes (including bare "..." Dcts string literals) into the 32-character intermediate alphabet.
normalize_with_dialect
Normalizes StageL 3 or StageR 3 source bytes according to dialect.