Scans, lexes, and parses an HLedger journal file into a concrete syntax tree (CST).
This method produces a tree of Chevrotain CST nodes containing
the type, position and text image of each parsed node.
A 'raw' journal object can be translated into a 'cooked' journal object using the
cstToRawLedger method.
Scans, lexes, and parses an HLedger journal file into a concrete syntax tree (CST). This method produces a tree of Chevrotain CST nodes containing the type, position and text image of each parsed node.
A 'raw' journal object can be translated into a 'cooked' journal object using the cstToRawLedger method.
Example (ESModule)
Example (CommonJS)