nx_tokenizer.nx
buildroot/runtime/nx_tokenizer.nx
about
dependencies 3 imports · 36 importers
diagram shows first 10 each side; +0 more imports, +26 more importers in the complete lists below.
imports: nx_syscalls.nxnx_types.nxnx_lex_kinds.nx
imported by: end2end_test.nxnx_compile_wat.nxnx_compile_x86.nxnx_dom_oracle_gate.nxnx_lang_struct.nxnx_main.nxnx_nxc.nxnx_quality_grade_daemon.nxnx_quality_grade_quad.nxnx_quality_grade_self.nxnx_quality_grade_septagon.nxnx_smoke_lex2.nxnx_smoke_lex3.nxnx_smoke_lex4.nxnx_smoke_lex5.nxnx_smoke_lex6.nxnx_smoke_lex7.nxnx_smoke_lex_min.nxnx_smoke_nxc_pipeline.nxnx_smoke_nxc_pipeline10.nxnx_smoke_nxc_pipeline11.nxnx_smoke_nxc_pipeline12.nxnx_smoke_nxc_pipeline13.nxnx_smoke_nxc_pipeline14.nxnx_smoke_nxc_pipeline15.nxnx_smoke_nxc_pipeline2.nxnx_smoke_nxc_pipeline3.nxnx_smoke_nxc_pipeline4.nxnx_smoke_nxc_pipeline5.nxnx_smoke_nxc_pipeline6.nxnx_smoke_nxc_pipeline7.nxnx_smoke_nxc_pipeline8.nxnx_smoke_nxc_pipeline9.nxnx_smoke_nxc_tilde.nxnx_vcc_color_wat.nxnx_vcc_probe_wat.nx
structs
| 122 | struct Lex |
consts
| 52 | const LEXM_MAGIC_65536: i64 = 65536 |
| 189 | const LEXM_MAX: i64 = 256 |
| 190 | const LEXM_NAMELEN: i64 = 64 |
| 194 | const LEXM_BODYLEN: i64 = 1024 |
| 519 | const LEXM_MAXARGS: i64 = 8 |
| 535 | const LEX_IDENT_MAX: i64 = 63 |
| 1698 | const PPB_MAX: i64 = 32 |
functions
| 61 | func is_alpha(c: i64) -> i64 |
| 67 | func is_digit(c: i64) -> i64 |
| 71 | func is_hexdigit(c: i64) -> i64 |
| 77 | func hex_val(c: i64) -> i64 called by 1: lex_number |
| 83 | func is_alnum(c: i64) -> i64 called by 5: lexm_isid_lex_pp_defined_lex_handle_preprocessorlex_ident_or_kwlex_source calls 2: is_alphais_digit |
| 93 | func keyword_lookup(t: *u8, len: i64) -> i64 |
| 135 | func push_tok(L: *Lex, t: *Tok) -> i64 |
| 156 | func advance(L: *Lex) -> i64 |
| 169 | func peek(L: *Lex) -> i64 |
| 173 | func peek2(L: *Lex) -> i64 |
| 201 | func lexm_init() -> i64 |
| 211 | func lexm_emit_str(out: *u8, o0: i64, s: *u8) -> i64 |
| 218 | func lexm_emit_dec(out: *u8, o0: i64, v: i64) -> i64 |
| 230 | func lexm_strlen(s: *u8) -> i64 |
| 240 | func lexm_body_end(src: *u8, n: i64, bp: i64) -> i64 |
| 317 | func lexm_name_at(i: i64) -> *u8 { return ((lexm_names as i64) + i * LEXM_NAMELEN) as *u8 } |
| 318 | func lexm_body_at(i: i64) -> *u8 { return ((lexm_bodies as i64) + i * LEXM_BODYLEN) as *u8 } |
| 331 | func lexm_diag_cell() -> *u8 |
| 338 | func lexm_warn_body_too_long(name: *u8, nlen: i64, blen: i64) -> i64 |
| 359 | func lexm_define(name: *u8, nlen: i64, body: *u8, blen: i64) -> i64 |
| 395 | func lexm_lookup(name: *u8, nlen: i64) -> *u8 called by 5: lexm_for_boundlexm_expandppe_primary_lex_pp_definedlex_ident_or_kw calls 2: lexm_name_atlexm_body_at |
| 415 | func lexm_undef(name: *u8, nlen: i64) -> i64 |
| 460 | func lexm_predefine() -> i64 |
| 468 | func lexm_reset() -> i64 |
| 480 | func lexm_body_int(body: *u8, out: *i64) -> i64 |
| 521 | func lexm_warn_too_many_args(got: i64) -> i64 |
| 537 | func lex_warn_ident_too_long(text: *u8, kept: i64, actual: i64) -> i64 |
| 555 | func lexm_isid(c: i64) -> i64 { return is_alnum(c) } called by 7: lexm_substlexm_prescanlexm_for_emitlexm_is_ident_textlexm_for_expandlexm_expand+1 calls 1: is_alnum |
| 559 | func lexm_subst(body: *u8, asrc: *u8, argp: *i64, argl: *i64, nargs: i64, out: *u8, o0: i64) -> i64 called by 1: lexm_expand calls 7: sys_mmaplexm_isidlexm_warn_too_many_argslexm_strlenlexm_body_endlexm_emit_str+1 |
| 733 | func lexm_prescan(src: *u8, n: i64) -> i64 |
| 778 | func lexm_for_bound(src: *u8, s0: i64, e0: i64, out: *i64) -> i64 |
| 812 | func lexm_for_emit(src: *u8, bs: i64, be: i64, vname: *u8, vlen: i64, vtxt: *u8, vtl: i64, out: *u8, o0: i64, ocap: i64) -> i64 |
| 881 | func lexm_trim(src: *u8, s: i64, e: i64, eout: *i64) -> i64 called by 1: lexm_paste_expand |
| 904 | func lexm_is_ident_text(p: *u8, s: i64, e: i64) -> i64 |
| 922 | func lexm_warn_bad_paste(out: *u8, s: i64, e: i64) -> i64 |
| 938 | func lexm_paste_expand(src: *u8, n: i64, istart: i64, kwlen: i64, mode: i64, out: *u8, o0: i64, ocap: i64, iout: *i64) -> i64 |
| 1000 | func lexm_kw_is(src: *u8, n: i64, at: i64, kw: *u8, kwlen: i64) -> i64 called by 1: lexm_expand |
| 1013 | func lexm_for_expand(src: *u8, n: i64, istart: i64, out: *u8, o0: i64, ocap: i64, iout: *i64) -> i64 called by 1: lexm_expand calls 6: lexm_isidlexm_body_endlexm_for_emitsys_mmaplexm_for_boundlexm_emit_dec |
| 1139 | func lexm_expand(src: *u8, n: i64, out: *u8, outcap: i64) -> i64 called by 1: lex_source calls 10: lexm_prescansys_mmaplexm_isidlexm_body_endlexm_for_expandlexm_kw_is+4 |
| 1317 | func ppe_or(src: *u8, n: i64, pos: *i64) -> i64; |
| 1325 | func ppe_scratch_cell() -> *i64 |
| 1330 | func ppe_skipws(src: *u8, n: i64, pos: *i64) -> i64 |
| 1344 | func ppe_primary(src: *u8, n: i64, pos: *i64) -> i64 |
| 1441 | func ppe_unary(src: *u8, n: i64, pos: *i64) -> i64 |
| 1465 | func ppe_mul(src: *u8, n: i64, pos: *i64) -> i64 |
| 1494 | func ppe_add(src: *u8, n: i64, pos: *i64) -> i64 |
| 1509 | func ppe_cmp(src: *u8, n: i64, pos: *i64) -> i64 |
| 1554 | func ppe_and(src: *u8, n: i64, pos: *i64) -> i64 |
| 1576 | func ppe_or(src: *u8, n: i64, pos: *i64) -> i64 |
| 1601 | func ppe_eval_at(src: *u8, n: i64, openp: i64) -> i64 |
| 1610 | func _lex_src_eq(L: *Lex, needle: *u8, n: i64) -> i64 |
| 1621 | func _lex_src_eq_at(L: *Lex, at: i64, needle: *u8, n: i64) -> i64 |
| 1632 | func _lex_skip_to_eol(L: *Lex) -> i64 |
| 1641 | func _lex_skip_to_matching_endif(L: *Lex) -> i64 |
| 1682 | func _lex_pp_defined(L: *Lex, name_pos: i64) -> i64 |
| 1703 | func ppb_init() -> i64 |
| 1714 | func ppb_push(v: i64) -> i64 |
| 1723 | func ppb_pop() -> i64 |
| 1732 | func ppb_top_taken() -> i64 |
| 1740 | func ppb_set_top(v: i64) -> i64 |
| 1749 | func ppb_reset() -> i64 |
| 1758 | func _lex_pp_kw_at(L: *Lex, at: i64) -> i64 |
| 1772 | func _lex_skip_to_next_branch(L: *Lex) -> i64 |
| 1800 | func _lex_handle_preprocessor(L: *Lex) -> i64 |
| 1915 | func skip_ws_comments(L: *Lex) -> i64 |
| 1953 | func lex_ident_or_kw(L: *Lex) -> i64 |
| 2010 | func lex_number(L: *Lex) -> i64 |
| 2164 | func lex_string(L: *Lex) -> i64 |
| 2274 | func emit_punct(L: *Lex, kind: i64, len: i64) -> i64 |
| 2297 | func lex_source(src: *u8, cap: i64) -> *Tok called by 35: run_srcmainmainmainmaincompile+29 calls 18: sys_mmaplexm_expandlexm_resetppb_resetskip_ws_commentspeek+12 |