code wiki / (root) / nx_money_ledger.nx

nx_money_ledger.nx

buildroot/runtime/nx_money_ledger.nx

5646 B119 linesdepth 3pulls 3 transitivereach 1 importersview sourcekind librarytopic money
docsdependenciesstructsconstsfunctions

about

nx_money_ledger.nx -- the SOVEREIGN data-in path (the needle-mover the reality-check identified). Parses a user-owned CSV statement export (date,description,amount) into a real transaction ledger: sums income (inflows), and auto-categorizes each outflow (needs/wants/savings) by merchant keyword + flags recurring drains -- emitting exactly the array nx_spend_analyze consumes. NO Plaid, NO third-party data broker: the person's OWN export, on their machine. Integer-exact (cents). Rules are keyword-based (should migrate to a config table). license_tier: ORIGINAL

dependencies 2 imports · 1 importers

nx_syscalls.nx nx_spend_analyze.nx nx_money_ledger.nx nx_money_ledger_gate.nx

imports: nx_syscalls.nxnx_spend_analyze.nx

imported by: nx_money_ledger_gate.nx

structs

none

consts

none

functions

10func lg_parse_amount(s: *u8, start: i64, end: i64) -> i64
called by 2: lg_parse_csvmain
36func lg_contains(hay: *u8, start: i64, end: i64, needle: *u8) -> i64
50func lg_class_of(d: *u8, s: i64, e: i64) -> i64
called by 1: lg_parse_csv calls 1: lg_contains
67func lg_is_recurring(d: *u8, s: i64, e: i64) -> i64
called by 1: lg_parse_csv calls 1: lg_contains
84func lg_parse_csv(csv: *u8, len: i64, sp_out: *i64, max: i64, income_out: *i64) -> i64
111func lg_load_file(path: *u8, buf: *u8, cap: i64) -> i64