code wiki / (root) / nx_court_recap.nx

nx_court_recap.nx

buildroot/runtime/nx_court_recap.nx

7465 B176 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_court_recap.nx

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

main sys_mmap c_read sys_openat_rd sys_read sys_close mkneedle c_count c_val_after c_str_after w sys_write wn w ↻ sys_mmap ↻ sys_write ↻ wc sys_mmap ↻ sys_write ↻

structs

none

consts

8const K_MAGIC_524288: i64 = 524288
9const K_MAGIC_2048: i64 = 2048
10const K_MAGIC_1990: i64 = 1990
11const K_MAGIC_2030: i64 = 2030

functions

13func 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 }
called by 2: wnmain calls 1: sys_write
14func wc(fd: i64, code: i64) -> i64 { let t: *u8 = sys_mmap(2); t[0] = code as u8; sys_write(fd, t, 1); return 0 }
called by 1: main calls 2: sys_mmapsys_write
15func wn(fd: i64, v: i64) -> i64
called by 1: main calls 3: wsys_mmapsys_write
21func c_read(path: *u8, buf: *u8, cap: i64) -> i64
called by 1: main calls 3: sys_openat_rdsys_readsys_close
27func c_count(buf: *u8, n: i64, needle: *u8) -> i64
called by 1: main
38func mkneedle(dst: *u8, name: *u8) -> i64
called by 1: main
48func c_val_after(buf: *u8, n: i64, needle: *u8) -> i64
called by 1: main
71func c_str_after(buf: *u8, n: i64, needle: *u8, dst: *u8, dcap: i64) -> i64
called by 1: main
102func main(argc: i64, argv: *i64) -> i64