nx_court_recap.nx
buildroot/runtime/nx_court_recap.nx
about
nx_court_recap.nx -- R1a sovereign court-data ingest parse-core (CourtListener v4 financial-disclosures).
Rung-1: needle-scan a banked CL financial-disclosure JSON page -> normalized counts + a value + liar-kill gate.
Rung-2: cursor-following -- extract the v4 "next" cursor + a string field value (c_str_after), so the live
ingester can page through EVERYTHING. Gated deterministically on the banked fixture (network-independent).
nx_cc traps avoided: NO double-quote / '#' / '!' in string literals -> JSON needles built at runtime via mkneedle.
license_tier: ORIGINAL expect_exit:0
dependencies 1 imports · 0 importers
imports: nx_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
| 8 | const K_MAGIC_524288: i64 = 524288 |
| 9 | const K_MAGIC_2048: i64 = 2048 |
| 10 | const K_MAGIC_1990: i64 = 1990 |
| 11 | const K_MAGIC_2030: i64 = 2030 |
functions
| 13 | func w(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 wc(fd: i64, code: i64) -> i64 { let t: *u8 = sys_mmap(2); t[0] = code as u8; sys_write(fd, t, 1); return 0 } |
| 15 | func wn(fd: i64, v: i64) -> i64 |
| 21 | func c_read(path: *u8, buf: *u8, cap: i64) -> i64 |
| 27 | func c_count(buf: *u8, n: i64, needle: *u8) -> i64 called by 1: main |
| 38 | func mkneedle(dst: *u8, name: *u8) -> i64 called by 1: main |
| 48 | func c_val_after(buf: *u8, n: i64, needle: *u8) -> i64 called by 1: main |
| 71 | func c_str_after(buf: *u8, n: i64, needle: *u8, dst: *u8, dcap: i64) -> i64 called by 1: main |
| 102 | func main(argc: i64, argv: *i64) -> i64 |