hrj / abandon

:relieved: Simple and Robust Accounting
Apache License 2.0
184 stars 26 forks source link

Cannot parse a simple file #290

Closed przemekd closed 2 years ago

przemekd commented 2 years ago

I wasn't able to parse a really simple transaction log:

2019-02-01 Opening Balance
  Assets:BNP Paribas checking account  1000.00
  Equity:Opening Balances

and the error output is pretty much useless:

[1.1] failure: end of input expected

2019-02-01 Opening Balance
^
Input error: Couldn't parse input
hrj commented 2 years ago

abandon doesn't allow spaces in the account name. This is to keep the code simple and prevent weird corner cases while parsing.

For visual separation between words, I recommend using _ (underscore) or CamelCase.

best, HRJ