code wiki / _hdl_build / nx_viz_icicle.nx
nx_viz_icicle.nx
buildroot/runtime/_hdl_build/nx_viz_icicle.nx
about
nx_viz_icicle.nx -- COMPOSED live ICICLE: parse a tree TSV (parent/value/label), partition it with
nx_viz_partition (subtree-proportional spans), and draw each node as a depth-banded rectangle (x from its span,
y from its depth) coloured by tier (nx_viz_color), labelled via nx_viz_shape's serializer. Self-contained HTML
for the wiki. usage: nx_viz_icicle [in.tsv] [out.html]. license_tier: ORIGINAL
dependencies 4 imports · 0 importers
imports: nx_viz_partition.nxnx_viz_shape.nxnx_viz_color.nxnx_syscalls.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
| 9 | const K_MAGIC_4096: i64 = 4096 |
| 10 | const K_MAGIC_8192: i64 = 8192 |
| 11 | const K_MAGIC_262144: i64 = 262144 |
functions
| 13 | func cw(fd: i64, s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(fd, s, n); return 0 } |
| 14 | func emit_hex6(out: *u8, off: i64, color: i64) -> i64 called by 1: main |
| 26 | func atoi_signed(buf: *u8, s: i64, e: i64) -> i64 called by 1: main |
| 34 | func group_of(i: i64, parent: *i64, depth: *i64) -> i64 called by 1: main |
| 40 | func main(argc: i64, argv: *i64) -> i64 |