nx_main.nx
buildroot/runtime/nx_main.nx
about
main.nx -- NishiLang-side compiler driver.
Pipeline: source text -> lex -> parse -> opt -> regalloc -> riscv
-> write-to-stdout. Stands in for main.c. Real source-file reading
(openat + read + grow buffer) is a follow-up; this turn drives the
pipeline from an in-memory source string so the whole stack of
nx-side modules links cleanly through a single entry point.
Once file I/O is in syscalls.nx and string concatenation lands, this
driver becomes the authoritative NishiLang compiler -- the C nxc2
retires behind it.
dependencies 9 imports · 0 importers
imports: nx_syscalls.nxnx_types.nxnx_lex_kinds.nxnx_ir.nxnx_tokenizer.nxnx_parse.nxnx_opt.nxnx_regalloc.nxnx_riscv.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 33 | func compile(src: *u8) -> i64 |
| 81 | func main() -> i64 calls 1: compile |