code wiki / (root) / _a2a_selfhost_binop.nx

_a2a_selfhost_binop.nx

buildroot/runtime/_a2a_selfhost_binop.nx

4271 B142 linesdepth 8pulls 9 transitivereach 0 importersview sourcekind tooltopic a2a
docsdependenciesstructsconstsfunctions

about

Self-host pipeline exercising binary operators. Source: `func main() -> i64 { return 2 + 3 * 4 }` Expected: IR with CONST_I64(2), CONST_I64(3), CONST_I64(4), MUL, ADD, RETURN

dependencies 5 imports · 0 importers

syscalls.nx nx_nlex.nx nx_nparse.nx nx_nir.nx nx_nx86.nx _a2a_selfhost_binop.nx

imports: syscalls.nxnx_nlex.nxnx_nparse.nxnx_nir.nxnx_nx86.nx

imported by: nobody (leaf or entry point)

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

main nx_nlex_new nx_nlex_run nx_loop_begin sys_mmap nx_loop_step nx_clock_monotonic_ns sys_mmap ↻ sys_clock_gettime_mono nx_nlex_skip_ws_and_commen nx_loop_begin ↻ nx_loop_step ↻ nx_nlex_peek nx_nlex_is_ws nx_nlex_advance nx_loop_break nx_nlex_peek ↻ nx_nlex_emit nx_nlex_token_at nx_loop_break ↻ nx_nlex_is_alpha nx_nlex_lex_ident nx_loop_begin ↻ nx_loop_step ↻ nx_nlex_peek ↻ nx_loop_break ↻ nx_nlex_is_alnum nx_nlex_is_alpha ↻ nx_nlex_is_digit nx_nlex_advance ↻ nx_nlex_classify nx_nlex_streq nx_nlex_emit ↻ nx_nlex_is_digit ↻ nx_nlex_lex_int nx_nlex_peek ↻ nx_nlex_advance ↻ nx_loop_begin ↻ nx_loop_step ↻ nx_loop_break ↻

structs

none

consts

none

functions

11func main() -> i64