code wiki / _hdl_build / nx_tok_debug.nx
nx_tok_debug.nx
buildroot/runtime/_hdl_build/nx_tok_debug.nx
about
nx_tok_debug.nx -- GROUND-TRUTH: how does nx_html_next_token tokenize <style>...</style><cite>?
The render shows `<cite class="...">` as LITERAL TEXT in Wikipedia references; this dumps the token
stream for a minimal fixture to see whether <cite> after </style> is a START_TAG or leaks as TEXT.
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_html_tokenizer.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 ps(s: *u8) -> i64 { var k: i64=0; while s[k]!=(0 as u8){k=k+1} sys_write(1,s,k); return 0 } |
| 8 | func pn(v0: i64) -> i64 { var v: i64=v0; if v<0 { let m: *u8=sys_mmap(8); m[0]=45 as u8; sys_write(1,m,1); v=0-v } let b: *u8=sys_mmap(24); var k: i64=0; if v==0 {b[0]=48;k=1} while v>0 {b[k]=(48+(v%10)) as u8; v=v/10; k=k+1} let o: *u8=sys_mmap(24); var j: i64=0; while j<k {o[j]=b[k-1-j];j=j+1} sys_write(1,o,k); return 0 } |
| 9 | func kname(k: i64) -> i64 |
| 20 | func run(html: *u8) -> i64 |
| 48 | func findsub(src: *u8, len: i64, from: i64, pat: *u8, patlen: i64) -> i64 called by 1: main |
| 59 | func has_classeq(src: *u8, off: i64, len: i64) -> i64 called by 1: main |
| 72 | func main() -> i64 |