nx_synthroom.nx
buildroot/runtime/nx_synthroom.nx
about
nx_synthroom.nx -- THE ROOM PROTOCOL TOOL (/compare/synthroom rung SR1): the thin main over
nx_synthroom_lib. All judgement lives in the lib so the gate can reach it in-process and a mutation
bite is not hidden behind a fork boundary.
nx_synthroom append <log> <nonce> <verb> <actor> [a1] [a2] -> appends ONE event row, or refuses by name
nx_synthroom replay <log> <menu.conf> -> prints the derived intent stream
nx_synthroom menu <menu.conf> <amount> [item] -> prints the intent one tip maps to
nx_synthroom verbs -> prints the verb vocabulary
exit 0 done | 1 refused (the reason is printed and named) | 2 usage
license_tier: ORIGINAL No hw writes (Rule 26).
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_synthroom_lib.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 15 | const SRT_EXIT_OK: i64 = 0 |
| 16 | const SRT_EXIT_REFUSED: i64 = 1 |
| 17 | const SRT_EXIT_USAGE: i64 = 2 |
| 18 | const SRT_ARGV_VERB: i64 = 1 |
| 19 | const SRT_MIN_ARGC: i64 = 2 |
| 20 | const SRT_APPEND_MIN: i64 = 6 |
| 21 | const SRT_REPLAY_ARGC: i64 = 4 |
| 22 | const SRT_MENU_MIN: i64 = 4 |
| 23 | const SRT_A_LOG: i64 = 2 |
| 24 | const SRT_A_NONCE: i64 = 3 |
| 25 | const SRT_A_VERB: i64 = 4 |
| 26 | const SRT_A_ACTOR: i64 = 5 |
| 27 | const SRT_A_A1: i64 = 6 |
| 28 | const SRT_A_A2: i64 = 7 |
| 29 | const SRT_A_MENU: i64 = 3 |
| 30 | const SRT_M_CONF: i64 = 2 |
| 31 | const SRT_M_AMT: i64 = 3 |
| 32 | const SRT_M_ITEM: i64 = 4 |
| 35 | const SRT_ROW_MAX: i64 = 128 |
| 36 | const SRT_WORD: i64 = 8 |
functions
| 38 | func srt_w(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 39 | func srt_n(v: i64) -> i64 |
| 46 | func srt_usage() -> i64 |
| 57 | func srt_refuse(d: i64) -> i64 |
| 64 | func srt_lines(buf: *u8, n: i64) -> i64 called by 1: main |
| 71 | func main(argc: i64, argv: *i64) -> i64 |