code wiki / (root) / _offc_lex_only.nx

_offc_lex_only.nx

buildroot/runtime/_offc_lex_only.nx

616 B20 linesdepth 4pulls 8 transitivereach 0 importersview sourcekind tooltopic offc
docsdependenciesstructsconstsfunctions

about

Isolated test: just call lex_source on a tiny input. If THIS crashes, the bug is in lex. If not, it's elsewhere in the nxc.nx pipeline.

dependencies 4 imports · 0 importers

syscalls.nx types.nx lex_kinds.nx lex.nx _offc_lex_only.nx

imports: syscalls.nxtypes.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