nx_kv.nx
buildroot/runtime/nx_kv.nx
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
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
structs
| 29 | struct NxKvIter |
consts
| 39 | const NX_KVITER_BYTES: i64 = 56 |
functions
| 41 | func nx_kv_new(src: *u8, len: i64) -> *NxKvIter called by 1: main |
| 55 | func nx_kv_is_eol(c: i64) -> i64 |
| 62 | func nx_kv_skip_blanks(it: *NxKvIter) -> i64 |
| 100 | func nx_kv_next(it: *NxKvIter) -> i64 |
| 168 | func main() -> i64 |