You are browsing as a guest. Sign up (or log in) to start making projects!

hibernathan1212

@hibernathan1212

Joined June 1st, 2026

  • 1Devlogs
  • 1Projects
  • 0Ships
  • 0Votes
Open comments for this post

10h 19m 57s logged

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.

0
0
31

Followers

Loading…