I've never written a parser before. I looked at this article: https://www.blackbytes.info/2015/04/parsing-with-ruby/ and translated what I think I needed into Crystal. I was able to then use this to write a simple script to completely deduplicate all my transactions that I stupidly duplicated and sorted!
strickinato / crystal-ledger Goto Github PK
View Code? Open in Web Editor NEW⚠ A sort of working ledger parser that was good enough for a script I ran, but I actually don't know how to write parsers! ⚠