code wiki / (root) / smoke_lex_min.nx

smoke_lex_min.nx

buildroot/runtime/smoke_lex_min.nx

481 B17 linesdepth 4pulls 8 transitivereach 0 importersview sourcekind smoketopic smoke
docsdependenciesstructsconstsfunctions

about

smoke_lex_min.nx -- minimal lex_source call. If this segfaults the bug is in lex.nx or its codegen interaction. If this exits 0 the bug is something specific lex_test does after.

dependencies 3 imports · 0 importers

syscalls.nx lex_kinds.nx lex.nx smoke_lex_min.nx

imports: syscalls.nxlex_kinds.nxlex.nx

imported by: nobody (leaf or entry point)

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

main lex_source skip_ws_comments peek advance peek2 peek ↻ is_alpha lex_ident_or_kw tok_text_ptr peek ↻ is_alnum is_alpha ↻ is_digit advance ↻ keyword_lookup push_tok is_digit ↻ lex_number peek ↻ peek2 ↻ advance ↻ is_hexdigit is_digit ↻ hex_val push_tok ↻ is_digit ↻ lex_string advance ↻ tok_text_ptr ↻ peek ↻ push_tok ↻ peek2 ↻ emit_punct advance ↻ push_tok ↻ advance ↻ push_tok ↻

structs

none

consts

none

functions

10func main() -> i64 {
calls 1: lex_source