Function beancount_parser_2::parse

source ·
pub fn parse<'a, S: From<&'a str> + Eq + Hash + Clone, D: Decimal>(
    input: &'a str
) -> Result<BeancountFile<S, 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.