code wiki / (root) / nx_kv.nx

nx_kv.nx

buildroot/runtime/nx_kv.nx

7506 B219 linesdepth 5pulls 6 transitivereach 0 importersview sourcekind tooltopic kv
docsdependenciesstructsconstsfunctions

about

nx_kv.nx -- key=value (.env / dotenv-style) parser. Parses input of the form: # comment KEY=value ANOTHER_KEY=other value QUOTED="value with spaces" SINGLE='also fine' Returns one entry at a time via a streaming iterator. No multiline values, no variable interpolation, no escape sequences in this commit; those land if a real .env consumer requires them. Used by: - Service config loaders (NX_HOST=... NX_PORT=...) - Build-tool .env file consumers - Test-harness fixture loading

dependencies 2 imports · 0 importers

syscalls.nx nx_lex.nx nx_kv.nx

imports: syscalls.nxnx_lex.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main nx_kv_new nx_kv_next nx_kv_skip_blanks nx_lex_is_intraline_ws nx_kv_is_eol nx_kv_is_eol ↻

structs

29struct NxKvIter

consts

39const NX_KVITER_BYTES: i64 = 56

functions

41func nx_kv_new(src: *u8, len: i64) -> *NxKvIter
called by 1: main
55func nx_kv_is_eol(c: i64) -> i64
62func nx_kv_skip_blanks(it: *NxKvIter) -> i64
100func nx_kv_next(it: *NxKvIter) -> i64
called by 1: main calls 2: nx_kv_skip_blanksnx_kv_is_eol
168func main() -> i64