code wiki / _hdl_build / nx_html_table_gate.nx

nx_html_table_gate.nx

buildroot/runtime/_hdl_build/nx_html_table_gate.nx

3568 B62 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic html
docsdependenciesstructsconstsfunctions

about

nx_html_table_gate.nx -- proves the sovereign HTML table extractor (nx_html_table): parse a known table (CIAAW-shaped, with <a> tags + &nbsp;/&plusmn; entities) into rows x cells and assert each cell. Liar-kill: an out-of-range column must return 0. GREEN iff all checks pass. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_html_table.nx nx_html_table_gate.nx

imports: nx_syscalls.nxnx_html_table.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main g_strlen sys_mmap g_w sys_write ht_next_row ht_find_open ht_is_open ht_lc ht_after_gt ht_find_close ht_lc ↻ ht_cell ht_find_open ↻ ht_after_gt ↻ ht_find_close ↻ ht_text sys_mmap ↻ nx_html_decode_entities sys_mmap ↻ nx_html_entity_lookup _ent_utf8 g_row g_w ↻ g_streq g_contains g_strlen ↻ sys_write ↻ sys_exit

structs

none

consts

none

functions

7func g_w(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: g_rowmain calls 1: sys_write
8func g_streq(a: *u8, b: *u8) -> i64 { var i: i64=0; while a[i]!=(0 as u8){ if a[i]!=b[i]{return 0} i=i+1 } if b[i]!=(0 as u8){return 0} return 1 }
called by 1: main
9func g_strlen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 2: g_containsmain
10func g_contains(hay: *u8, needle: *u8) -> i64
called by 1: main calls 1: g_strlen
21func g_row(id: *u8, ok: i64, pass: *i64) -> i64 { g_w(" "); g_w(id); g_w(": "); if ok==1 { g_w("OK\n"); pass[0]=pass[0]+1 } else { g_w("FAIL\n") } return 0 }
called by 1: main calls 1: g_w
23func main() -> i64