Module wat

Module wat 

Source
Expand description

WebAssembly Text Format (.wat) to Document Character (.WASM Dc stream) converter and staged Dc implementation loader (stage_0_impls/, stage_1_impls/, impls/).

Structs§

StagedDcImpl
One compiled Dc, Format, or standalone converter Routine implementation loaded from stage_0_impls/, stage_1_impls/, stage_2_impls/, or impls/.

Enums§

ImplStage
Stage classification for implementation files under src/formats/dcdata/data-src/.

Functions§

encode_i64_dc_shorthands
Encodes a signed 64-bit integer into canonical Dc 6 f199 (11)? ... Dc 7 shorthands.
encode_u128_dc_shorthands
Encodes an unsigned 128-bit integer into canonical Dc 6 f199 ... Dc 7 shorthands.
load_staged_dc_impls
Loads and compiles all staged implementation files under data_dir (stage_0_impls/, stage_1_impls/, stage_2_impls/, impls/).
load_staged_dc_impls_with_compiler
Loads and compiles all staged implementation files under data_dir, invoking source_compiler when higher-stage .sl3 (stage_1_impls/+) or .sr3 (stage_2_impls/, impls/) files are present.
parse_dcsh_impl_tokens
Parses a .dcsh implementation file (supporting # and ;; line comments and "..." UTF-8 strings) into a sequence of DcShorthands.
wat_to_dc_shorthand_string
Converts WebAssembly Text Format (.wat) source into a space-separated Dc shorthand string.
wat_to_dc_shorthands
Converts WebAssembly Text Format (.wat) source into a canonical .WASM Document Character shorthand sequence (Dc 1927 "Begin WASM program" .. Dc 1928 "End WASM program").
wat_to_staged_dc_entries
Compiles a staged .wat implementation file into one or more (context_tokens, wasm_tokens) pairs, splitting ;; @context(...)-annotated (func ...) definitions into self-contained .WASM programs (Dc 1927 "Begin WASM program" .. Dc 1928 "End WASM program").

Type Aliases§

StagedSourceCompiler
Callback type used to compile higher-stage .sl3 / .sr3 implementation files using previously loaded lower-stage bootstrap compilers.