Beancount Parsing, Lexing, and File Loading
Been working on beancount processing for the app, tokenizing the raw beancount into a usable data structure for the app to access. Currently consists of three main parts: file loader, lexical analyzer, and directives parser. File loading was a surprising pain having to deal with apple’s security over reading arbitrary files. Is now able to load any directory with a ledger.beancount file and handle any includes. Lexer takes the raw text and breaks it down into beancount directives. The directives parser then takes the directives and checks double entries, account validity etc and also creates the data structures necessary to display data.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.