nx_block_density_cli.nx
buildroot/runtime/nx_block_density_cli.nx
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
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
structs
| none |
consts
| none |
functions
| 11 | func 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 |
| 12 | func bc_puts(s: *u8) -> i64 { sys_write(1, s, bc_len(s)); return 0 } |
| 13 | func bc_num(v: i64) -> i64 |
| 20 | func 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 |
| 22 | func main(argc: i64, argv: *i64) -> i64 |