code wiki / (root) / nx_parse_lex.nx

nx_parse_lex.nx

buildroot/runtime/nx_parse_lex.nx

4203 B116 linesdepth 0pulls 0 transitivereach 2 importersview sourcekind librarytopic parse
docsdependenciesstructsconstsfunctions

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

nx_parse_lex.nx nx_parse_lex_gate.nx nx_write_run.nx

imports: none

imported by: nx_parse_lex_gate.nxnx_write_run.nx

structs

none

consts

none

functions

22func px_pack_lines(raw: *u8, n: i64, out: *u8, out_cap: i64) -> i64
called by 2: mainmain
59func px_pack_weighted(raw: *u8, n: i64, out: *u8, out_cap: i64, weights: *i64) -> i64
called by 2: mainmain