nx_tokenizer.nx
buildroot/runtime/nx_tokenizer.nx
about
dependencies 3 imports · 68 importers
diagram shows first 10 each side; +0 more imports, +58 more importers in the complete lists below.
imports: nx_syscalls.nxnx_types.nxnx_lex_kinds.nx
imported by: end2end_test.nxnx_cap_detect_ir_gate_t278.nxnx_compile_field_candidate_t280.nxnx_compile_wat.nxnx_compile_wat_call_operands_t143.nxnx_compile_wat_scalararm.nxnx_compile_x86.nxnx_dom_oracle_gate.nxnx_lang_struct.nxnx_lsp.nxnx_main.nxnx_nxc.nxnx_quality_grade_daemon.nxnx_quality_grade_quad.nxnx_quality_grade_self.nxnx_quality_grade_septagon.nxnx_rv64_atomic_gate.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_srcfmt.nxnx_type_layout_gate.nxnx_vcc_color_wat.nxnx_vcc_probe_wat.nxnx_wgsl.nxnx_wgsl_authored_t55.nxnx_wgsl_before_front_t217.nxnx_wgsl_canonical_skin_t140.nxnx_wgsl_cast_control_t181.nxnx_wgsl_cast_lbs_t181.nxnx_wgsl_cast_material_t181.nxnx_wgsl_cloud_transport_t155.nxnx_wgsl_cumulus_release_t161.nxnx_wgsl_cumulus_t156.nxnx_wgsl_depth_candidate_t192.nxnx_wgsl_eye_t138.nxnx_wgsl_face_mask_t163.nxnx_wgsl_front_candidate_t217.nxnx_wgsl_inspection_t165.nxnx_wgsl_sand_baseline_t137.nxnx_wgsl_sand_private_t137.nxnx_wgsl_scene_light_candidate_t364.nxnx_wgsl_skin_t138.nxnx_wgsl_sky_light_t154.nxnx_wgsl_sky_private_20260910.nxnx_wgsl_sky_review_t154.nxnx_wgsl_static_t335.nxnx_wgsl_world_depth_t195.nx
structs
| 159 | struct Lex |
consts
| 65 | const LEX_DEC_SIG_DIGITS: i64 = 18 |
| 66 | const LEX_U64_MAX_DIV10: i64 = 1844674407370955161 |
| 67 | const LEX_U64_MAX_LAST: i64 = 5 |
| 68 | const LEX_EXP_CAP: i64 = 99999 |
| 89 | const LEXM_MAGIC_65536: i64 = 65536 |
| 235 | const LEXM_MAX: i64 = 256 |
| 236 | const LEXM_NAMELEN: i64 = 64 |
| 240 | const LEXM_BODYLEN: i64 = 1024 |
| 565 | const LEXM_MAXARGS: i64 = 8 |
| 581 | const LEX_IDENT_MAX: i64 = 63 |
| 1744 | const PPB_MAX: i64 = 32 |
functions
| 73 | func lex_err_get_kind() -> i64 { return lex_err_kind } |
| 74 | func lex_err_get_line() -> i64 { return lex_err_line } |
| 75 | func lex_err_get_col() -> i64 { return lex_err_col } |
| 76 | func lex_err_get_byte() -> i64 { return lex_err_byte } |
| 81 | func diag_desync_origin(kind: i64, line: i64, col: i64, byte: i64) -> i64 |
| 98 | func is_alpha(c: i64) -> i64 |
| 104 | func is_digit(c: i64) -> i64 |
| 108 | func is_hexdigit(c: i64) -> i64 |
| 114 | func hex_val(c: i64) -> i64 called by 1: lex_number |
| 120 | func is_alnum(c: i64) -> i64 |
| 130 | func keyword_lookup(t: *u8, len: i64) -> i64 |
| 176 | func push_tok(L: *Lex, t: *Tok) -> i64 |
| 202 | func advance(L: *Lex) -> i64 |
| 215 | func peek(L: *Lex) -> i64 |
| 219 | func peek2(L: *Lex) -> i64 |
| 247 | func lexm_init() -> i64 |
| 257 | func lexm_emit_str(out: *u8, o0: i64, s: *u8) -> i64 |
| 264 | func lexm_emit_dec(out: *u8, o0: i64, v: i64) -> i64 |
| 276 | func lexm_strlen(s: *u8) -> i64 |
| 286 | func lexm_body_end(src: *u8, n: i64, bp: i64) -> i64 |
| 363 | func lexm_name_at(i: i64) -> *u8 { return ((lexm_names as i64) + i * LEXM_NAMELEN) as *u8 } |
| 364 | func lexm_body_at(i: i64) -> *u8 { return ((lexm_bodies as i64) + i * LEXM_BODYLEN) as *u8 } |
| 377 | func lexm_diag_cell() -> *u8 |
| 384 | func lexm_warn_body_too_long(name: *u8, nlen: i64, blen: i64) -> i64 |
| 405 | func lexm_define(name: *u8, nlen: i64, body: *u8, blen: i64) -> i64 |
| 441 | func lexm_lookup(name: *u8, nlen: i64) -> *u8 |
| 461 | func lexm_undef(name: *u8, nlen: i64) -> i64 |
| 506 | func lexm_predefine() -> i64 |
| 514 | func lexm_reset() -> i64 |
| 526 | func lexm_body_int(body: *u8, out: *i64) -> i64 |
| 567 | func lexm_warn_too_many_args(got: i64) -> i64 |
| 583 | func lex_warn_ident_too_long(text: *u8, kept: i64, actual: i64) -> i64 |
| 601 | func lexm_isid(c: i64) -> i64 { return is_alnum(c) } |
| 605 | func lexm_subst(body: *u8, asrc: *u8, argp: *i64, argl: *i64, nargs: i64, out: *u8, o0: i64) -> i64 |
| 779 | func lexm_prescan(src: *u8, n: i64) -> i64 |
| 824 | func lexm_for_bound(src: *u8, s0: i64, e0: i64, out: *i64) -> i64 |
| 858 | 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 |
| 927 | func lexm_trim(src: *u8, s: i64, e: i64, eout: *i64) -> i64 |
| 950 | func lexm_is_ident_text(p: *u8, s: i64, e: i64) -> i64 |
| 968 | func lexm_warn_bad_paste(out: *u8, s: i64, e: i64) -> i64 |
| 984 | func lexm_paste_expand(src: *u8, n: i64, istart: i64, kwlen: i64, mode: i64, out: *u8, o0: i64, ocap: i64, iout: *i64) -> i64 |
| 1046 | func lexm_kw_is(src: *u8, n: i64, at: i64, kw: *u8, kwlen: i64) -> i64 |
| 1059 | func lexm_for_expand(src: *u8, n: i64, istart: i64, out: *u8, o0: i64, ocap: i64, iout: *i64) -> i64 |
| 1185 | func lexm_expand(src: *u8, n: i64, out: *u8, outcap: i64) -> i64 |
| 1363 | func ppe_or(src: *u8, n: i64, pos: *i64) -> i64; |
| 1371 | func ppe_scratch_cell() -> *i64 |
| 1376 | func ppe_skipws(src: *u8, n: i64, pos: *i64) -> i64 |
| 1390 | func ppe_primary(src: *u8, n: i64, pos: *i64) -> i64 |
| 1487 | func ppe_unary(src: *u8, n: i64, pos: *i64) -> i64 |
| 1511 | func ppe_mul(src: *u8, n: i64, pos: *i64) -> i64 |
| 1540 | func ppe_add(src: *u8, n: i64, pos: *i64) -> i64 |
| 1555 | func ppe_cmp(src: *u8, n: i64, pos: *i64) -> i64 |
| 1600 | func ppe_and(src: *u8, n: i64, pos: *i64) -> i64 |
| 1622 | func ppe_or(src: *u8, n: i64, pos: *i64) -> i64 |
| 1647 | func ppe_eval_at(src: *u8, n: i64, openp: i64) -> i64 |
| 1656 | func _lex_src_eq(L: *Lex, needle: *u8, n: i64) -> i64 |
| 1667 | func _lex_src_eq_at(L: *Lex, at: i64, needle: *u8, n: i64) -> i64 |
| 1678 | func _lex_skip_to_eol(L: *Lex) -> i64 |
| 1687 | func _lex_skip_to_matching_endif(L: *Lex) -> i64 |
| 1728 | func _lex_pp_defined(L: *Lex, name_pos: i64) -> i64 |
| 1749 | func ppb_init() -> i64 |
| 1760 | func ppb_push(v: i64) -> i64 |
| 1769 | func ppb_pop() -> i64 |
| 1778 | func ppb_top_taken() -> i64 |
| 1786 | func ppb_set_top(v: i64) -> i64 |
| 1795 | func ppb_reset() -> i64 |
| 1804 | func _lex_pp_kw_at(L: *Lex, at: i64) -> i64 |
| 1818 | func _lex_skip_to_next_branch(L: *Lex) -> i64 |
| 1846 | func _lex_handle_preprocessor(L: *Lex) -> i64 |
| 1978 | func lex_scr() -> *u8 |
| 1984 | func lex_scr_macroval() -> *i64 |
| 1992 | func skip_ws_comments(L: *Lex) -> i64 |
| 2030 | func lex_ident_or_kw(L: *Lex) -> i64 |
| 2091 | func lex_number(L: *Lex) -> i64 |
| 2292 | func lex_string(L: *Lex) -> i64 |
| 2407 | func emit_punct(L: *Lex, kind: i64, len: i64) -> i64 |
| 2434 | func lex_source(src: *u8, cap: i64) -> *Tok |