code wiki / _hdl_build / nx_xlate_mt_smoke.nx
nx_xlate_mt_smoke.nx
buildroot/runtime/_hdl_build/nx_xlate_mt_smoke.nx
about
nx_xlate_mt_smoke.nx -- fast compile+logic smoke for the data-driven engine (tiny inline lexicon, no files).
Proves: (1) TSV parse, (2) Cyrillic CASE-FOLD so "Привет"=="привет", (3) multi-word PHRASE longest-match,
(4) Russian morphology suffix-strip ("друга"->друг), (5) EN->RU + RU->EN + passthrough of unknowns.
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_xlate_mt.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 6 | const K_MAGIC_1024: i64 = 1024 |
functions
| 8 | func s_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 9 | func s_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 10 | func s_num(v: i64) -> i64 |
| 22 | func s_try(eng: *i64, label: *u8, src: *u8, dir: i64, expect: *u8) -> i64 |
| 35 | func main() -> i64 |