code wiki / _hdl_build / nx_parse_probe.nx

nx_parse_probe.nx

buildroot/runtime/_hdl_build/nx_parse_probe.nx

2643 B50 linesdepth 7pulls 22 transitivereach 0 importersview sourcekind probetopic parse
docsdependenciesstructsconstsfunctions

about

nx_parse_probe.nx -- pinpoint the PARSER gaps that block minified jQuery. Tries jp_parse_source on each ES5-minifier idiom jQuery uses; prints OK/FAIL per construct. The FAILs are the exact parser-hardening TODO.

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_js_eval.nx nx_parse_probe.nx

imports: nx_syscalls.nxnx_js_eval.nx

imported by: nobody (leaf or entry point)

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

main cw sys_write probe try_parse sys_mmap jp_parse_source js_lex js_skip_trivia js_is_space js_lex_one js_is_idstart js_scan_ident js_is_keyword js_emit js_num_starts js_scan_number js_lex_string js_lex_template js_regex_context js_lex_regex js_punct_len jp_parse_program jp_tok_kind jp_pst jp_toks jp_cur jp_pst ↻ jp_err jp_pst ↻ jp_parse_stmt jp_err ↻ jp_error_node jp_is_punct jp_advance jp_new_node jp_pst ↻ jp_parse_block jp_is_kw jp_parse_var_decl

structs

none

consts

none

functions

6func cw(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: probemain calls 1: sys_write
7func tslen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 1: try_parse
9func try_parse(src: *u8) -> i64
19func probe(label: *u8, src: *u8) -> i64
called by 1: main calls 2: try_parsecw
25func main() -> i64
calls 2: cwprobe