Closed ThomasdenH closed 4 years ago
Currently, the beancount properties borrow from their input. However, this makes it very hard to create a plugin, since that would require returning new constructs that are owned by the current function:
fn plugin<'a>(entries: Vec<Directive>, options_map: HashMap<&'a str, &'a str>) -> (Vec<Directive>, Vec<Errors>);
Never mind, I found the ast-to-constructs branch which seems to implement this.
Currently, the beancount properties borrow from their input. However, this makes it very hard to create a plugin, since that would require returning new constructs that are owned by the current function: