On Fri, Jul 7, 2017 at 10:51 AM, Ken Mankoff <[email protected]> wrote:

> Hi,
>
> Thanks for the quick reply. It turns out it does work and does not break
> the parser. I checked the syntax with =bean-check=, and it reported a bunch
> of "Invalid token:". I thought these were errors, but they are just
> warnings. The parser still works, and I can now embed reports in the Org
> file too. For example,
>
> * Reports
> ** Balance Report
> #+BEGIN_SRC sh :results verbatim
> bean-report ./beancount.org bal
> #+END_SRC
> #+RESULTS:
> #+begin_example
> Assets:Cash:USD                               42.00   USD
> #+end_example
>
>
> So... syntax is invalid but parser still works. If I adopt this as my
> finance tool I will discuss with you about making this valid syntax and
> improving the parser.


The main thing lots of people want in terms of parser changes is support
for Unicode/international characters.
That probably requires a hand-coded lexer -- not difficult, but a major
change nevertheless.
A new lexer would also remove some of the quirks in the syntax, e.g.
limited number of flag characters supported.
It would also do a better job at tokenizing indentation.



> Although it might not make sense to add Org-specific features. Enjoy your
> vacation! I'm moving over the next 3 weeks too, international, hence my
> search for a new finance tool that works outside the US.
>

Beancount will work with any number of currencies and should do the job.
I've used it myself with transactions and investments in two countries for
many years, reporting and converting to USD the entire time, tracking cost
basis.

The only "major" limitation that remains is that if you need to account
using average cost basis (e.g. as in a 401k or RRSP in Canada), the report
needs to aggregate all units and cost (those accounts currently require one
to disable booking of reductions (sales) by using the "NONE" booking
method, and thus they preserve the entire history of additions and
reductions in the account. Summing over the units and/or cost will work,
but when reporting the full inventory of those accounts you would see a
huge list of transactions. Not a huge problem IMO, but I'd like to do that
properly eventually, recalculating the cost basis to a single position
automatically as buys / sells occur).




  -k.
>
> --
> 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 post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/beancount/m2tw2o8fmj.fsf%40gmail.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/CAK21%2BhMFbnq1Nagy%3DaTH3-Atnxd79Q7ydcn-rZmxUN7j%3D-H6PA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to