code wiki / (root) / nx_uxf_extract.nx

nx_uxf_extract.nx

buildroot/runtime/nx_uxf_extract.nx

7405 B152 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind tooltopic uxf
docsdependenciesstructsconstsfunctions

about

nx_uxf_extract.nx -- UXF arc R1b-3: the DATA-DRIVEN multi-source EXTRACT + CORROBORATION pass (Rule 11 data-driven, Rule 15 DRY -- one extractor for every source, no per-source clones). Reads a manifest knowledge/staging/uxf/raws.tsv (lines: <label>\t<raw-path>), and for EACH source runs the proven pipeline: sys_read_file -> split header/body at CRLFCRLF -> nx_http_dechunk (fallback to body as-is) -> nx_html_to_text_x -> pattern-count a broadened decoupling term set. Then reports CROSS-SOURCE corroboration (a concept present in >=2 sources = corroborated, the researcher's admission rule). Mechanical (terminology-literal) -- NOT semantic NLP. No hardware/persistent writes (Rule 26). expect_exit: 0 license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_http_dechunk.nx nx_html_to_text.nx nx_uxf_extract.nx

imports: nx_syscalls.nxnx_http_dechunk.nxnx_html_to_text.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 sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close ux_puts sys_write sys_exit ux_find_byte ux_copyz ux_process sys_mmap ↻ sys_read_file ↻ ux_puts ↻ ux_body_off nx_http_dechunk hd_hexval nx_html_to_text_x h2t_state_new sys_mmap ↻ sys_mmap ↻ h2t_scan_tag h2t_skip_to_gt h2t_scan_name h2t_is_name h2t_is_block_tag h2t_name_eq_lit h2t_lc h2t_lc ↻ h2t_is_suppress_tag h2t_name_eq_lit ↻ h2t_emit_newline h2t_name_eq_lit ↻ h2t_emit_raw h2t_find_href h2t_lc ↻ h2t_is_name ↻

structs

none

consts

13const K_MAGIC_4194304: i64 = 4194304

functions

15func ux_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 2: ux_processmain calls 1: sys_write
16func ux_putn(v: i64) -> i64 { let bb: *u8 = sys_mmap(28); var m: i64 = v; if m < 0 { m = 0 - m; sys_write(1, "-" as *u8, 1) } let t: *u8 = sys_mmap(28); var k: i64 = 0; if m == 0 { t[0] = 48 as u8; k = 1 } while m > 0 { t[k] = (48 + (m % 10)) as u8; m = m / 10; k = k + 1 } var i: i64 = 0; while i < k { bb[i] = t[k - 1 - i]; i = i + 1 } sys_write(1, bb, k); return 0 }
called by 2: ux_processmain calls 2: sys_mmapsys_write
17func ux_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: ux_count
19func ux_count(text: *u8, n: i64, term: *u8) -> i64
called by 1: ux_process calls 1: ux_slen
33func ux_find_byte(buf: *u8, start: i64, end: i64, b: i64) -> i64
called by 1: main
39func ux_copyz(src: *u8, a: i64, b: i64, dst: *u8, dstcap: i64) -> i64
called by 1: main
48func ux_body_off(raw: *u8, n: i64) -> i64
called by 1: ux_process
58func ux_process(rawpath: *u8, label: *u8, hits: *i64) -> i64
107func main() -> i64