nx_ascii.nx
buildroot/runtime/nx_ascii.nx
about
nx_ascii.nx -- ASCII character classification.
Replaces the inline `c >= 0x30 && c <= 0x39`-style checks scattered
across the lexer, the printer, the formatter, the path module,
the strconv module, etc. Centralises the table so all callers
agree (and so we can swap to UTF-8-aware versions later without
hunting them down).
Functions return 1 / 0 (NishiLang doesn't have a bool type).
All inputs are i64 in 0..255 -- caller pre-validates byte range
(typically by reading from a *u8).
dependencies 1 imports · 10 importers
imports: syscalls.nx
imported by: nx_ascii_kat.nxnx_coq_ingest.nxnx_hol_ingest.nxnx_isabelle_ingest.nxnx_json.nxnx_lean_ingest.nxnx_lex.nxnx_narrative_ingest.nxnx_strconv.nxnx_substrate_evolve.nx
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 21 | func nx_ascii_is_digit(c: i64) -> i64 |
| 27 | func nx_ascii_is_lower(c: i64) -> i64 |
| 33 | func nx_ascii_is_upper(c: i64) -> i64 |
| 39 | func nx_ascii_is_alpha(c: i64) -> i64 called by 4: nx_ascii_is_alnumnx_ascii_is_id_startmainmain calls 2: nx_ascii_is_lowernx_ascii_is_upper |
| 44 | func nx_ascii_is_alnum(c: i64) -> i64 |
| 50 | func nx_ascii_is_id_start(c: i64) -> i64 called by 8: mainmainnx_coq_next_tokennx_hol_next_tokennx_isa_next_tokennx_lean_next_token+2 calls 1: nx_ascii_is_alpha |
| 57 | func nx_ascii_is_id_cont(c: i64) -> i64 |
| 63 | func nx_ascii_is_space(c: i64) -> i64 |
| 73 | func nx_ascii_is_print(c: i64) -> i64 called by 1: main |
| 79 | func nx_ascii_is_hex(c: i64) -> i64 |
| 87 | func nx_ascii_to_lower(c: i64) -> i64 |
| 92 | func nx_ascii_to_upper(c: i64) -> i64 |
| 99 | func main() -> i64 |