code wiki / _hdl_build / nx_html_table_gate.nx
nx_html_table_gate.nx
buildroot/runtime/_hdl_build/nx_html_table_gate.nx
about
nx_html_table_gate.nx -- proves the sovereign HTML table extractor (nx_html_table): parse a known table
(CIAAW-shaped, with <a> tags + /± 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
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
structs
| none |
consts
| none |
functions
| 7 | func 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 } |
| 8 | func 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 |
| 9 | func g_strlen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } |
| 10 | func g_contains(hay: *u8, needle: *u8) -> i64 |
| 21 | func 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 } |
| 23 | func main() -> i64 |