main.nx
buildroot/runtime/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: syscalls.nxtypes.nxlex_kinds.nxir.nxlex.nxparse.nxopt.nxregalloc.nxriscv.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
| 27 | func compile(src: *u8) -> i64 { |
| 75 | func main() -> i64 {
calls 1: compile |