code wiki / (root) / nx_macro_v2_test.nx

nx_macro_v2_test.nx

buildroot/runtime/nx_macro_v2_test.nx

3899 B112 linesdepth 6pulls 6 transitivereach 0 importersview sourcekind gate/prooftopic macro
docsdependenciesstructsconstsfunctions

about

nx_macro_v2_test.nx -- exercise multi-line {} bodies + $$ident gensym.

dependencies 1 imports · 0 importers

nx_kernel_v2.nx nx_macro_v2_test.nx

imports: nx_kernel_v2.nx

imported by: nobody (leaf or entry point)

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

main test_multiline_basic test_gensym_isolation double_three double_seven test_gensym_within_one_bod nx_term_const sys_mmap nx_k2_axiom nx_k2_at test_multiple_axiom_macros nx_k2_chain_new sys_mmap ↻

structs

none

consts

none

functions

26func double_three() -> nx_int { SAFE_DOUBLE(3) }
27func double_seven() -> nx_int { SAFE_DOUBLE(7) }
45func test_multiline_basic() -> nx_int
called by 1: main
53func test_gensym_isolation() -> nx_int
called by 1: main calls 2: double_threedouble_seven
61func test_gensym_within_one_body() -> nx_int
called by 1: main calls 2: nx_term_constnx_k2_axiom
76func test_multiple_axiom_macros() -> nx_int
called by 1: main calls 1: nx_k2_chain_new
84func main() -> nx_exit