nx_fin_extract.nx
buildroot/runtime/nx_fin_extract.nx
about
nx_fin_extract.nx -- RUNG 2 of THE NISHI FINANCIAL ECOSYSTEM researcher: EXTRACT stage.
Streams each sovereignly-fetched knowledge/fetched/fin_*.raw (Wikipedia HTML) through the team's
own nx_html_to_text renderer (strips tags, decodes 110+ entities, suppresses script/style, collapses
whitespace) into clean, dated plain-text dossiers in the Nishi LIBRARY (knowledge/library/). 100%
sovereign (no curl/gcc/3rd-party parser) -- reuses nx_html_to_text (DRY #15). Buffers are reused per
file so no per-file accumulation. Re-runnable (overwrites). expect_exit: 0 license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls.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
structs
| none |
consts
| 9 | const K_MAGIC_8388608: i64 = 8388608 |
functions
| 11 | func fx_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 12 | func fx_putn(v: i64) -> i64 |
| 23 | func read_all(path: *u8, buf: *u8, cap: i64) -> i64 |
| 38 | func fx_find(text: *u8, n: i64, needle: *u8, from: i64) -> i64 called by 1: extract_one |
| 51 | func extract_one(inpath: *u8, outpath: *u8, raw: *u8, txt: *u8, cap: i64) -> i64 |
| 70 | func main() -> i64 |