Module lumi::parse[][src]

Parsing input text files and generating valid a Ledger.

Structs

AccountInfoDraft

Represents the information of an account collected by the parser from the source file, which needs further inspections.

CostLiteral

Represents the parsed cost basis information.

LedgerDraft

Contains the information collected by a parser from the source files, which might include unbalanced transactions or other errors.

Lexer

A lexer based on logos::Lexer that can peek tokens and track locations.

Parser

A parser that transforms input text file into LedgerDraft.

PostingDraft

Represents the result of a parsed posting, which might miss amounts or referred an invalid account.

TxnDraft

Represents a transaction, or a pad directive, or a balance direction parsed from the source file, which needs further inspections.

Enums

CostBasis

Represents the cost basis written in the source file, which might be either unit cost or total cost.

Token

Tokens in lumi accounting language.