Is there a language-neutral intermediate representation for a beancount ledger?

2024-06-09 Thread Filip Filmar
Hi. Perhaps this is a wrong-headed idea from the get go. I apologize if so. As asked in the subject - is there a language neutral IR for the ledger, that isn't the freeform text format? I ask because I'd rather use a different programming language for any beancount extensions. https://github.com/

Re: Is there a language-neutral intermediate representation for a beancount ledger?

2024-06-09 Thread Martin Blais
Yes, the ledger.proto including the data.proto from ccore is supposed to be that. Indeed it doesn't currently represent comments but a while ago it was discussed to be able to do that, and to allow programmatic transformation on the parsed output and to reconstitute text, as well as round-tripping.