Closed twilco closed 5 years ago
Proper Beancount syntax supports inline arithmetic as part of the parsing process. We should support this too, but currently don't - files with these operations will fail to parse. See the original Beancount's number_expr: https://bitbucket.org/blais/beancount/src/default/beancount/parser/grammar.y?fileviewer=file-view-default#grammar.y-293
number_expr
This was fixed with c848534f6e357b2f1a5b91534416fdf87b9cd60e. We now parse entire num_exprs - the resolution of a num_expr to a singular number can be done after tokenization.
num_expr
Proper Beancount syntax supports inline arithmetic as part of the parsing process. We should support this too, but currently don't - files with these operations will fail to parse. See the original Beancount's
number_expr
: https://bitbucket.org/blais/beancount/src/default/beancount/parser/grammar.y?fileviewer=file-view-default#grammar.y-293