code wiki / _hdl_build / nx_codewiki.nx

nx_codewiki.nx

buildroot/runtime/_hdl_build/nx_codewiki.nx

5462 B117 linesdepth 7pulls 9 transitivereach 0 importersview sourcekind tooltopic codewiki
docsdependenciesstructsconstsfunctions

about

nx_codewiki.nx -- CLI for the code wiki generator (logic in nx_codewiki_lib.nx, split so the gate can import the lib -- a module owning main() cannot be imported by a second entry point, per the nx_gatelib lesson). nx_codewiki [srcroot] [outdir] [noext] defaults: srcroot=runtime outdir=_codewiki linkmode=.html 3rd arg literal "noext" emits extensionless hrefs (the edge's canonical clean-URL form; use for NAS deploys -- local file browsing wants .html) license_tier: ORIGINAL

dependencies 6 imports · 0 importers

nx_syscalls.nx nx_itoa_lib.nx nx_eco_graph.nx nx_gatelib.nx nx_import_scan.nx nx_codewiki_lib.nx nx_codewiki.nx

imports: nx_syscalls.nxnx_itoa_lib.nxnx_eco_graph.nxnx_gatelib.nxnx_import_scan.nxnx_codewiki_lib.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 cwm_w sys_write sys_exit

structs

none

consts

17const K_MAGIC_1024: i64 = 1024

functions

19func cwm_w(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 1: main calls 1: sys_write
24func cwm_n(v: i64) -> i64 { nxi_out(v); return 0 }
calls 1: nxi_out
26func main(argc: i64, argv: *i64) -> i64