Crate ledger_parser
source ·Expand description
Rust library for parsing Ledger-cli input files.
Only a subset of the ledger-cli’s file format is implemented.
Supported elements:
-
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
andAMOUNT
):ACCOUNT AMOUNT [; NOTE]
Note that the
AMOUNT
field is always required. -
Commodity prices with format:
P DATE SYMBOL PRICE
Structs
Commodity price.
Main document. Contains transactions and/or commodity prices.
Transaction.
Enums
Functions
Parses ledger-cli source.