code wiki / _hdl_build / nx_proof.nx
nx_proof.nx
buildroot/runtime/_hdl_build/nx_proof.nx
about
nx_proof.nx -- Checks for grammatical and stylistic errors in prose without relying on external dictionaries.
dependencies 1 imports · 0 importers
imports: nx_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
| 25 | const PF_CAP: i64 = 1048576 |
| 26 | const PF_RULE_DBL: i64 = 1 |
| 27 | const PF_RULE_SP2: i64 = 2 |
| 28 | const PF_RULE_LOW: i64 = 3 |
| 29 | const PF_RULE_END: i64 = 4 |
| 30 | const PF_RULE_BRK: i64 = 5 |
| 31 | const PF_RULE_QUO: i64 = 6 |
| 32 | const PF_RULE_TWS: i64 = 7 |
functions
| 34 | func pf_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 35 | func pf_num(v: i64) -> i64 |
| 49 | func pf_is_alpha(c: i64) -> i64 called by 1: pf_check |
| 54 | func pf_lower(c: i64) -> i64 { if c >= 65 { if c <= 90 { return c + 32 } } return c } called by 1: pf_check |
| 55 | func pf_is_upper(c: i64) -> i64 { if c >= 65 { if c <= 90 { return 1 } } return 0 } called by 1: pf_check |
| 56 | func pf_is_space(c: i64) -> i64 { if c == 32 { return 1 } if c == 9 { return 1 } return 0 } called by 1: pf_check |
| 59 | func pf_is_term(c: i64) -> i64 called by 1: pf_check |
| 72 | func pf_rule_name(r: i64) -> *u8 called by 1: pf_check |
| 85 | func pf_check(text: *u8, n: i64, counts: *i64, emit: i64) -> i64 |
| 211 | func pf_readfile(path: *u8, buf: *u8, cap: i64) -> i64 |
| 221 | func pf_zero(c: *i64) -> i64 { var i: i64 = 0; while i < 16 { c[i] = 0; i = i + 1 } return 0 } called by 1: main |
| 223 | func main(argc: i64, argv: *i64) -> i64 |