nx_parse_lex.nx
buildroot/runtime/nx_parse_lex.nx
about
nx_parse_lex.nx -- WRITING arc support: parse operator-supplied DATA files into
the packed null-terminated form the engine's whole-word counter expects. This
is how the operator/lane plugs in their roster (character bible), descriptor
lexicon (setting/outfit/MPL/...), and register lexicon (term + intensity weight)
WITHOUT touching any organ -- the lexicons are pure DATA (rule 25).
px_pack_lines(raw, n, out, out_cap) -> count
newline-separated terms -> packed "t1\0t2\0..."; skips blank lines,
strips trailing \r. (for roster + descriptors)
px_pack_weighted(raw, n, out, out_cap, weights) -> count
"term <ws> number" per line -> packed terms + weights[k]=number.
(for the register intensity lexicon)
Pure integer, NO imports (operates on caller buffers only).
license_tier: ORIGINAL
module: nishi-core.write.parselex
depends:
capability: WRITE_LEXICON_PARSE
dependencies 0 imports · 2 importers
imports: none
imported by: nx_parse_lex_gate.nxnx_write_run.nx
structs
| none |
consts
| none |
functions
| 22 | func px_pack_lines(raw: *u8, n: i64, out: *u8, out_cap: i64) -> i64 |
| 59 | func px_pack_weighted(raw: *u8, n: i64, out: *u8, out_cap: i64, weights: *i64) -> i64 |