On 25/07/24 23:06, TRS-80 wrote:
Hi friends,

Over the past years, I have implemented some hacky bits and pieces of a
txn parser and a writer in Emacs Lisp, and I was thinking about pulling
them together into something coherent and proper and maybe even
publishing it at some point.

However I have a bad habit of re-inventing wheels, so I thought I might
ask if something like this exists already?  I had a look at
https://plaintextaccounting.org, as well as searching this mailing list,
but all I found were some parsers written in Rust and some attempts at a
tree-sitter based parser for Beancount (which seemed to be so far
WIP/incomplete, near as I could tell).

I am not aware of any Emacs Lisp implementation of a parse and writer, but we have beancount-mode https://github.com/beancount/beancount-mode/ which uses the usual regexp based approach to implement a Beancount major mode. The regexps and functions in beancount.el are usually enough for implementing the kind of ledger editing functions I need.

I have a tree-sitter Beancount parser that AFAIK is complete and validating (contrary to other tree-sitter Beancount parsers I've seen, it correctly uses indentation to distinguish syntactical elements) but I haven't used it for anything other than playing around yet.

Cheers,
Dan

--
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/22811192-e8c3-4828-882a-cf2a1fe9d6d3%40grinta.net.

Reply via email to