code wiki / (root) / nx_paper_forge_cli.nx

nx_paper_forge_cli.nx

buildroot/runtime/nx_paper_forge_cli.nx

6708 B164 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind tooltopic paper
docsdependenciesstructsconstsfunctions

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

nx_paper_forge.nx nx_itoa_lib.nx nx_syscalls.nx nx_paper_forge_cli.nx

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

main fc_puts sys_write sys_exit sys_mmap fc_read sys_openat_rd sys_read sys_close pf_eol pf_app pf_appn pf_expand sys_mmap ↻ pf_lookup pf_eol ↻ pf_appn ↻ pf_app ↻ fc_num nxi_out nxi_fd sys_mmap ↻ ccz_cat_num sys_write ↻ sys_munmap pf_required pb_find fc_name fc_puts ↻ sys_openat_wr sys_write ↻ sys_close ↻ pb_find ↻

structs

none

consts

19const K_MAGIC_262144: i64 = 262144
20const K_MAGIC_262128: i64 = 262128
21const K_MAGIC_1048576: i64 = 1048576

functions

23func 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 }
called by 2: fc_namemain calls 1: sys_write
28func fc_num(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
29func fc_read(path: *u8, buf: *u8, cap: i64) -> i64
called by 1: main calls 3: sys_openat_rdsys_readsys_close
43func fc_name(i: i64) -> i64
called by 1: main calls 1: fc_puts
52func main(argc: i64, argv: *i64) -> i64