[−][src]Crate ledger_parser
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:
; # % | *
) -
Inline comments (starting with
;
) -
Transaction headers with format:
ⓘThis example is not testedDATE[=EDATE] [*|!] [(CODE)] DESC
-
Transaction postings with format (minimum two spaces or one tab between
ACCOUNT
andAMOUNT
):ⓘThis example is not testedACCOUNT AMOUNT [; NOTE]
Note that the
AMOUNT
field is always required. -
Commodity prices with format:
ⓘThis example is not testedP DATE SYMBOL PRICE
Structs
Amount | |
Commodity | |
CommodityPrice | Commodity price. |
Ledger | Main document. Contains transactions and/or commodity prices. |
Posting | |
Transaction | Transaction. |
Enums
CommodityPosition | |
TransactionStatus |
Functions
parse | Parses ledger-cli source. |