Skip to main content

parse

Function parse 

Source
pub fn parse(source: &str) -> ParseResult
Expand 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.