3 stable releases
|2.0.0||Oct 23, 2018|
|1.0.1||Oct 22, 2018|
#4 in #ledger
9 downloads per month
Rust library for parsing Ledger-cli input files.
Only a subset of the ledger-cli's file format is implemented.
Line comments (starting with:
; # % | *) except comments between postings
Inline comments (starting with
Transaction headers with format:
DATE[=EDATE] [*|!] [(CODE)] DESC
Transaction postings with format (minimum two spaces or one tab between
ACCOUNT AMOUNT [; NOTE]
Note that the
AMOUNTfield is always required.
Commodity prices with format:
P DATE SYMBOL PRICE
extern crate ledger_parser; let result = ledger_parser::parse(r#"; Example 1 2018-10-01=2018-10-14 ! (123) Marek Ogarek TEST:ABC 123 $1.20 TEST:ABC 123 $1.20"#);