Why don't you build a tool for printing out the result of these rule-based
modifications? Do you think that would be useful? Is it possible? I see a
lot of questions like: "Why doesn't my rule such and such work? I see
unexpected results in the register." If Ledger had a command to "expand
everything, and print the expanded results," all of these questions would
be easily answered by inspecting what it's doing, no? Is that easy to
implement?

Just an idea. I'm building something exactly like that for Beancount, to
help in debugging plugins, which are essentially functions that transform a
list of entries in arbitrary ways, into a new, modified list of entries.
One should be able to diff the files and round-trip between data-structure
to text and back.





On Mon, Jun 2, 2014 at 6:42 PM, Esben Stien <[email protected]> wrote:

> Jostein Berntsen <[email protected]> writes:
>
> > This seems to work for me:
> >
> > = /Assets:1500/
>                                                                      >
> Assets:Total  1
> >      Income:3010  -1
> > 2014-06-02 foo
>                                                                     >
> Assets:1500:foo:10101    1337
> >     Assets:Total
> > 2014-06-03 foo
>                                                                     >
> Assets:1500:foo:20101    5100
> >     Assets:Total
>
> That's because you're doing something totally different.
>
> If you look at my example, I only have one line in each transaction.
>
> I don't want to write, ie "Assets:Total" 15 brazillion times.
>
> --
> Esben Stien is b0ef@e     s      a
>          http://www. s     t    n m
>           irc://irc.  b  -  i  .   e/%23contact
>            sip:b0ef@   e     e
>            jid:b0ef@    n     n
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Ledger" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to