code wiki / _hdl_build / nx_js_compile.nx

nx_js_compile.nx

buildroot/runtime/_hdl_build/nx_js_compile.nx

15770 B213 linesdepth 8pulls 24 transitivereach 0 importersview sourcekind tooltopic js
docsdependenciesstructsconstsfunctions

about

nx_js_compile.nx -- the bytecode-VM PARITY GATE (rungs 2..5c): every chk() runs the SAME source through the TREE-WALKER (js_run_source) and the VM (compile_run in nx_js_vm.nx) and requires identical rc AND deep-equal values; chk_read() = the async read-after-drain twin. The VM library lives in nx_js_vm.nx so other organs (nx_js_sota_bench) reuse it without duplicating the engine. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_js_vm.nx nx_js_compile.nx

imports: nx_js_vm.nx

imported by: nobody (leaf or entry point)

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

main bw chk bsl compile_run cr_core jp_parse_source js_lex js_skip_trivia js_lex_one jp_parse_program jp_tok_kind jp_cur jp_err jp_parse_stmt jp_child_commit jp_new_node jp_pst ev_set c_scope_push c_program c_predecl jp_nkind jp_na jp_nb jp_child_at c_newslot ev_tok_start ev_tok_len c_predecl ↻ jp_nextra c_rootslot jp_nc ev_for_body ev_try_finally jp_nb ↻ jp_child_at ↻ jp_nkind ↻ jp_na ↻ c_function

structs

none

consts

none

functions

7func main(argc: i64, argv: *i64) -> i64