code wiki / _hdl_build / nx_library_extract.nx

nx_library_extract.nx

buildroot/runtime/_hdl_build/nx_library_extract.nx

3398 B75 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind tooltopic library
docsdependenciesstructsconstsfunctions

about

nx_library_extract.nx -- SOVEREIGN render+extract half of the digital-library best-practices research rung (L-R1a). Reads the six raw HTTP responses fetched by nx_library_fetch, strips HTTP headers, renders HTML->text with the team's nx_html_to_text, saves the rendered text, and runs the team's deterministic ce_extract (number+unit fact claims) over each. Lives in _hdl_build/ so the import path reaches both nx_claim_extract (here) and nx_html_to_text (../). Division: FETCH + RENDER + EXTRACT all sovereign Nishi; the qualitative "which sentence states which best practice" reading is the model seat (cited verbatim in the sourced research doc). expect_exit: 0 license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_claim_extract.nx nx_html_to_text.nx nx_library_extract.nx

imports: nx_syscalls.nxnx_claim_extract.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 le_puts sys_write render_one sys_mmap ce_read_file sys_openat_rd sys_read sys_close le_puts ↻ nx_html_to_text 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 ↻ h2t_decode_entity h2t_decode_numeric h2t_is_name ↻ nx_html_entity_lookup h2t_emit_codepoint h2t_emit_text_byte h2t_is_ws h2t_emit_text_byte ↻ sys_munmap

structs

none

consts

18const K_MAGIC_4194304: i64 = 4194304
19const K_MAGIC_4194303: i64 = 4194303

functions

21func le_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: render_onemain calls 1: sys_write
22func le_putn(v: i64) -> i64
called by 1: render_one calls 2: sys_mmapsys_write
31func render_one(raw_path: *u8, txt_path: *u8) -> i64
64func main() -> i64