code wiki / (root) / parse_test.nx

parse_test.nx

buildroot/runtime/parse_test.nx

1274 B33 linesdepth 6pulls 15 transitivereach 0 importersview sourcekind gate/prooftopic parse
docsdependenciesstructsconstsfunctions

about

parse_test.nx -- self-test for parse.nx. Walk a synthetic token stream simulating `func f() { return 42 }` and verify that parse_module runs to completion and produces one function in the module.

dependencies 4 imports · 0 importers

types.nx lex_kinds.nx ir.nx parse.nx parse_test.nx

imports: types.nxlex_kinds.nxir.nxparse.nx

imported by: nobody (leaf or entry point)

structs

none

consts

none

functions

12func main() -> i64 {