Function parse

Source
pub fn parse<D: Decimal>(input: &str) -> Result<BeancountFile<D>, Error>
Expand description

Parse the input beancount file and return an instance of BeancountFile on success

It is generic over the Decimal type D.

See the root crate documentation for an example.

ยงErrors

Returns an Error in case of invalid beancount syntax found.