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 (DcCharstream). - eval
- Deterministic reference evaluator and inline
testrunner 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 againstrustcandclippy. - seed_
linker - Snapshot-pinned StageL 3 linker resolving external PSR-4
usenamespaces and transitivedc/<shorthand>Token-Dc helpers directly from aSeedGraphIndex. - 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.sl3and StageL Token Dcs) compiler to.WASM(Dc 1927..Dc 1928) and WebAssembly binary modules, linking Stage 0.WASMbuilt-in primitives from the System seed graph (Dc 646).
Enums§
- Stage
Dialect - 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.sli3B"..."or.sri3"..."literal back into raw payload bytes. - is_
sli3_ byte - Returns
trueiffbbelongs 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.