code wiki / _hdl_build / nx_step_parse_gate.nx

nx_step_parse_gate.nx

buildroot/runtime/_hdl_build/nx_step_parse_gate.nx

8747 B222 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic step
docsdependenciesstructsconstsfunctions

about

nx_step_parse_gate.nx -- teeth for R1a STEP structure parse on the REAL canonical assembly knowledge/fetched/step_as1.stp (as1-oc-214, AP214, banked by nx_step_sample_fetch). T1 lex scale · T2 PRODUCTs found incl as1/nut/rod-assembly (probe-verified names) · T3 NAUO edges collected + EVERY parent/child PD resolves PD->PDF->PRODUCT · T4 exactly ONE assembly root and it is the as1 product · T5 occurrence tree depth >= 2 (assembly of assemblies), printed for eyeball · T6 BOM leaf occurrences >= 4, printed · T7 NEG-CONTROL: a real NON-STEP file (NHTSA JSON) lexes to 0 entities · T8 truncation robustness: first-2000-bytes parse yields fewer entities, no crash. expect_exit: 0 license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_step_parse.nx nx_step_parse_gate.nx

imports: nx_step_parse.nx

imported by: nobody (leaf or entry point)

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

main sp_puts sys_write sp_read_file sys_openat_rd sys_read sys_close sp_putn sys_mmap sp_puts ↻ sys_write ↻ sp_init sys_mmap ↻ sp_scan sp_skip_string sp_skip_comment sp_statement sp_isspace sp_isnamec sp_args_span sp_skip_string ↻ spg_tooth sp_puts ↻ sp_name_is sp_prod_name_is sp_name_is ↻ sp_arg_span sp_skip_string ↻ sp_isspace ↻ sp_nauo_collect sp_name_is ↻ sp_arg_span ↻ sp_span_ref sp_isspace ↻ sp_pd_product sp_find sp_name_is ↻ sp_first_ref sp_skip_string ↻ sp_name_prefix

structs

none

consts

none

functions

10func spg_tooth(name: *u8, pass: i64, fails: *i64) -> i64
called by 1: main calls 1: sp_puts
18func spg_prod_out(st: *i64, prodidx: i64, out2: *i64) -> i64
called by 1: main calls 2: sp_arg_spansp_span_str_out
25func main() -> i64