nx_paper_forge_cli.nx
buildroot/runtime/nx_paper_forge_cli.nx
about
nx_paper_forge_cli.nx -- callable surface for the manuscript compiler (AS-1).
nx_paper_forge <paper.conf> <evidence.tsv> <out.md>
evidence.tsv : <id>\t<value>\t<source>\t<method>
paper.conf : T <title> (once, emitted as "# title" + "## Abstract")
B <abstract line> (may contain {ID})
S <section heading> (emitted as "## heading")
P <paragraph> (may contain {ID})
R <reference line> (collected under "## References")
exit 0 EMITTED exit 2 usage exit 1 unreadable input
exit 4 REFUSED-UNCITED a claim has no evidence row -- nothing written
exit 5 REFUSED-UNSTRUCTURED a graded section is missing -- nothing written
license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0
dependencies 3 imports · 0 importers
imports: nx_paper_forge.nxnx_itoa_lib.nxnx_syscalls.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
| 19 | const K_MAGIC_262144: i64 = 262144 |
| 20 | const K_MAGIC_262128: i64 = 262128 |
| 21 | const K_MAGIC_1048576: i64 = 1048576 |
functions
| 23 | func fc_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 28 | func fc_num(v: i64) -> i64 { nxi_out(v); return 0 } |
| 29 | func fc_read(path: *u8, buf: *u8, cap: i64) -> i64 |
| 43 | func fc_name(i: i64) -> i64 |
| 52 | func main(argc: i64, argv: *i64) -> i64 |