code wiki / _hdl_build / nx_domtree_gate.nx

nx_domtree_gate.nx

buildroot/runtime/_hdl_build/nx_domtree_gate.nx

4516 B96 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_domtree_gate.nx -- gate for the mutable DOM (rung A). Drives the REAL organ over a real fixture + mutations: parse->serialize round-trip, getElementById (+ neg control), createElement/appendChild, setAttribute (update-in-place), textContent= (replace children). GREEN only if ALL pass. 0=GREEN/1=RED.

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_domtree.nx nx_domtree_gate.nx

imports: nx_syscalls.nxnx_domtree.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap dt_parse dt_new sys_mmap ↻ dt_alloc dt_node dt_parse_into sys_mmap ↻ nx_html_cursor_init nx_html_next_token _scan_name _is_name _is_void_element _lc dt_create_element_span dt_alloc ↻ dt_node ↻ dt_dup_lower sys_mmap ↻ dt_is_void dt_ceq dt_parse_attrs dt_is_name dt_is_ws dt_set_attr_span dt_node ↻ sys_mmap ↻ dt_dup_lower ↻ dt_attr_at dt_ceq ↻ dt_dup sys_mmap ↻ dt_append_child dt_node ↻ dt_node ↻ dt_is_rawtext dt_ceq ↻ dt_rawclose dt_ceq ↻

structs

none

consts

none

functions

7func g_p(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 3: g_pnchkmain calls 1: sys_write
8func g_pn(v: i64) -> i64
called by 1: main calls 3: g_psys_mmapsys_write
18func g_contains(buf: *u8, blen: i64, needle: *u8) -> i64
called by 1: main calls 1: dt_clen
31func chk(cond: i64, name: *u8, pp: *i64, tp: *i64) -> i64
called by 1: main calls 1: g_p
38func main() -> i64