pub fn parse(source: &str) -> ParseResultExpand description
Parse beancount source code.
Routes through the CST-backed implementation
(parse_via_cst): a lossless Logos lexer feeds a structured
CST builder, and the converter in crate::cst::convert walks
the resulting tree to produce the ParseResult.
§Arguments
source- The beancount source code to parse
§Returns
A ParseResult containing directives, options, includes, plugins, and errors.