code wiki / (root) / nx_vcc_color_wat.nx

nx_vcc_color_wat.nx

buildroot/runtime/nx_vcc_color_wat.nx

2525 B65 linesdepth 6pulls 16 transitivereach 0 importersview sourcekind tooltopic vcc
docsdependenciesstructsconstsfunctions

about

nx_vcc_color_wat.nx -- argless build-driver: lowers runtime/nx_vcodec_color_wasm.nx to WAT at a fixed output path. nx_sov_build_run swallows argv, so a parameterized nx_compile_wat can't be driven through it; this fixes the paths and runs the SAME sovereign pipeline (expand_imports -> lex -> parse -> opt -> wat_emit_module -> write). Sovereign, no .sh. license_tier: ORIGINAL

dependencies 12 imports · 0 importers

nx_syscalls.nx nx_types.nx nx_lex_kinds.nx nx_outbuf.nx nx_ir.nx nx_tokenizer.nx nx_parse.nx nx_opt.nx nx_ir_dump.nx nx_ir_validate.nx nx_vcc_color_wat.nx

diagram shows first 10 each side; +2 more imports, +0 more importers in the complete lists below.

imports: nx_syscalls.nxnx_types.nxnx_lex_kinds.nxnx_outbuf.nxnx_ir.nxnx_tokenizer.nxnx_parse.nxnx_opt.nxnx_ir_dump.nxnx_ir_validate.nxnx_import.nxnx_wasm.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_mmap expand_ctx_new sys_mmap ↻ expand_imports expand_imports_inner sys_write lex_source sys_mmap ↻ lexm_expand lexm_prescan lexm_isid is_alnum is_alpha is_digit lexm_body_end lexm_define lexm_init sys_mmap ↻ lexm_warn_body_too_long lexm_diag_cell lexm_emit_str lexm_emit_dec sys_write ↻ lexm_name_at lexm_body_at sys_mmap ↻ lexm_isid ↻ lexm_body_end ↻ lexm_for_expand lexm_isid ↻ lexm_body_end ↻ lexm_for_emit lexm_isid ↻ sys_mmap ↻ lexm_for_bound lexm_lookup lexm_name_at ↻ lexm_body_at ↻ lexm_body_int

structs

none

consts

18const VCC_OUT_CAP: i64 = 16777216
19const VCC_EXPAND_CAP: i64 = 4194304

functions

21func main() -> i64