nx_substrate_diagram_ascii.nx
buildroot/runtime/nx_substrate_diagram_ascii.nx
about
nx_substrate_diagram_ascii.nx -- substrate-walker emitting ASCII.
Same walker as nx_substrate_diagram.nx but final emit call is
nx_diagram_emit_ascii(d) instead of _emit_mermaid(d). Sovereign
terminal rendering, zero external dependency (no Mermaid, no
Graphviz). Run + `cat specs/substrate_diagram_ascii.txt` to view.
Per Wolfram-IP-free doctrine: the substrate must be visible to its
owner WITHOUT a closed renderer. This is the floor.
dependencies 7 imports · 0 importers
imports: nx_syscalls.nxnx_runtime.nxnx_axioms.nxnx_dirent.nxnx_fcntl.nxnx_tier.nxnx_diagram.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 25 | const NX_DIA_MAX_MODULES: nx_idx = 400 |
| 26 | const NX_DIA_MAX_EDGES: nx_idx = 4096 |
| 27 | const NX_DIA_MAX_NAME: nx_size = 96 |
| 28 | const NX_DIA_DIR_BUF: nx_size = 16384 |
functions
| 30 | func dia_name_matches(name: *u8, name_len: nx_size) -> nx_int called by 1: dia_collect_into_diagram |
| 54 | func dia_module_from_filename(name: *u8, name_len: nx_size, out: *u8) -> nx_size called by 1: dia_collect_into_diagram |
| 65 | func dia_collect_into_diagram(dir_path: *u8, d: *Diagram, names_buf: *u8) -> nx_idx called by 1: main calls 9: nx_openatsys_mmapnx_dirent_readnx_dirent_iternx_dirent_name_lendia_name_matches+3 |
| 100 | func dia_find_module_idx(d: *Diagram, names_buf: *u8, name: *u8, name_len: nx_size) -> nx_idx |
| 114 | func dia_add_edges_for_module(d: *Diagram, names_buf: *u8, from_idx: nx_idx) -> nx_int |
| 200 | func main() -> i64 |