code wiki / (root) / nx_mathml.nx

nx_mathml.nx

buildroot/runtime/nx_mathml.nx

1897 B50 linesdepth 5pulls 7 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_mathml.nx -- CLI for the sovereign LaTeX-subset to MathML typesetter. usage: nx_mathml <latex> [inline] Emits a MathML subtree on stdout, ready to paste into a page, a nx_paper_native .MATH row, or a document in the unified portal. Default is DISPLAY (block); pass a second argument to get inline. A formula this subset cannot read is REFUSED BY NAME with the offending command echoed, and nothing is written -- a half-converted formula is wrong in a way the reader cannot see. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

syscalls.nx nx_mathml_lib.nx nx_mathml.nx

imports: syscalls.nxnx_mathml_lib.nx

imported by: nobody (leaf or entry point)

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

main nm_puts nm_slen nm_slen ↻ lm_to_mathml lm_lit lm_slen he_put lm_err_name

structs

none

consts

none

functions

13func nm_slen(s: *u8) -> i64 { var i: i64 = 0; while s[i] != (0 as u8) { i = i + 1 } return i }
called by 2: nm_putsmain
14func nm_puts(s: *u8) -> i64 { sys_write(1, s, nm_slen(s)); return 0 }
called by 1: main calls 1: nm_slen
16func main(argc: i64, argv: *i64) -> i64