code wiki / _hdl_build / nx_doc_demo_kw.nx

nx_doc_demo_kw.nx

buildroot/runtime/_hdl_build/nx_doc_demo_kw.nx

602 B12 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind sketch/demotopic doc
docsdependenciesstructsconstsfunctions

about

nx_doc_demo_kw.nx -- the SECOND empty-.s sub-case for dogfooding: a reserved keyword (`match`) used as a parameter name. The compiler emits an empty .s (the parser needs an identifier, gets a keyword). The let-fixer cannot help here -> nx_doc_autoheal_apply returns NOFIX and kws_scan pinpoints the exact keyword + offset + a safe suggested rename. EXPECTED to fail to build; that failure is this sub-demo's starting state.

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_doc_demo_kw.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main sys_write q

structs

none

consts

none

functions

7func q(match: i64) -> i64 { return match + 1 }
called by 1: main
9func main() -> i64
calls 2: sys_writeq