On Thu, Nov 18, 2010 at 11:42 AM, John Wiegley <[email protected]> wrote:
> On Nov 18, 2010, at 12:00 PM, Peter Keen wrote:
>
>> = d>=[2010/02/10] & /^(?:Expenses:(Cable|Utils))/ & !/Expenses:Utils:Water/
>
> Change it to read:
>
> = expr date=>[2010/02/10] && account =~ /^(?:Expenses:(Cable|Utils))/ && 
> account !~ /Expenses:Utils:Water/
>  $account                                     -0.5
>  Assets:Receivable:Andrew            0.5
>

Thanks. I'll give it a shot when I get home tonight.

> On a further note, where would I go in the source to learn about the
>> filter language? I've seen people post snippets but as far as I can
>> tell there's no comprehensive docs yet, and my shallow dives into the
>> source haven't turned up anything useful.
>
> It's all in token.cc and parser.cc.  The "report query" language used by
> this expression (and which is a superset of the basic expression language)
> is in query.cc.
>
> Of all parts of Ledger, this really needs to be documented the most.

I'm going to be hacking on random stuff tonight. I'll read through
these and write down my notes, and if I get anywhere I'll send them to
you. Probably not as a doc patch initially but if you give me some
guidance on where you want it in the doc files I'll work on that too.

--Pete
>
> John
>

Reply via email to