pub fn parse(source: &str) -> Result<JsValue, JsError>
Parse a Beancount source string.
Returns a ParseResult with the parsed ledger and any errors.
ParseResult