code wiki / _hdl_build / nx_xlate_mt_smoke.nx

nx_xlate_mt_smoke.nx

buildroot/runtime/_hdl_build/nx_xlate_mt_smoke.nx

3552 B57 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind smoketopic xlate
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_xlate_mt.nx nx_xlate_mt_smoke.nx

imports: nx_syscalls.nxnx_xlate_mt.nx

imported by: nobody (leaf or entry point)

structs

none

consts

6const K_MAGIC_1024: i64 = 1024

functions

8func 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 }
9func s_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
10func s_num(v: i64) -> i64
22func s_try(eng: *i64, label: *u8, src: *u8, dir: i64, expect: *u8) -> i64
35func main() -> i64