code wiki / (root) / nx_block_density_cli.nx

nx_block_density_cli.nx

buildroot/runtime/nx_block_density_cli.nx

3368 B71 linesdepth 5pulls 6 transitivereach 0 importersview sourcekind tooltopic block
docsdependenciesstructsconstsfunctions

about

nx_block_density_cli.nx -- CLI over nx_block_density (the /compare/webscraping R6 lib): the calibration and inspection surface. `map` prints the per-block table the conf rows were calibrated from; `fit` and `full` print the two texts so a reader can diff what the filter removed; `stats` prints the one-line partition for a page. Reads a local file (a page fetched by nx_https_get or a knowledge/fetched mirror). usage: nx_block_density_cli map|fit|full|stats <html-file> exit: 0 ok | 2 usage | 3 unreadable input license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_block_density.nx nx_block_density_cli.nx

imports: nx_syscalls.nxnx_block_density.nx

imported by: nobody (leaf or entry point)

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

main bc_puts sys_write bc_len sys_mmap nxa_die sys_write ↻ sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close bd_count_lt bc_streq bd_map bd_load_conf bd_conf_one lc_geti sys_mmap ↻ lc_read sys_openat_rd ↻ sys_read ↻ sys_close ↻ lc_slen bd_count_lt ↻ sys_mmap ↻

structs

none

consts

none

functions

11func bc_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: bc_puts
12func bc_puts(s: *u8) -> i64 { sys_write(1, s, bc_len(s)); return 0 }
called by 1: main calls 2: sys_writebc_len
13func bc_num(v: i64) -> i64
20func bc_streq(a: *u8, b: *u8) -> i64 { var i: i64 = 0; while a[i] == b[i] { if a[i] == (0 as u8) { return 1 } i = i + 1 } return 0 }
called by 1: main
22func main(argc: i64, argv: *i64) -> i64