John Wiegley
2d5ad7dee8
Added support for value expression definitions.
...
Example:
] expr f(x) := x + 100
] expr f(100)
200
2009-02-08 04:30:05 -04:00
John Wiegley
ea9330adae
Allow value expressions to gain access to option settings.
...
For example, "ledger eval options.limit" prints 0 (for false), but:
"ledger -l hello eval options.limit" print "hello"s, since the value of
options.limit, once set to a value, is that string. For flag options,
such as -Y, eval prints 0 if unset, and 1 if set.
This feature allows value expressions to be conditionalized based on the
presence of user options.
2009-02-07 05:47:21 -04:00
John Wiegley
682544ef17
Refer to empty expression operators as simply NULL.
2009-02-07 04:27:04 -04:00
John Wiegley
2d941730b1
Largely removed all of Ledger's use of global variables, for the REPL's sake.
2009-02-04 19:55:27 -04:00
John Wiegley
56b3a49f63
Fixed some warnings caused by using g++ 4.3.
2009-02-02 21:46:35 -04:00
John Wiegley
1ece3f8b1c
Added documentation stubs for all include files and classes.
2009-01-31 15:28:23 -04:00
John Wiegley
05c77351e4
Stopped using the generic "unsigned int" in favor of more specific types.
2009-01-29 18:23:57 -04:00
John Wiegley
887828a40c
Increased copyright range to include 2009.
2009-01-20 01:53:31 -04:00
John Wiegley
efc923acb4
Allow var_t<datetime_t>.
2009-01-19 22:29:17 -04:00
John Wiegley
bcfd6d1db9
When setting a scope's argument, convert the list to a sequence if it's not
...
already.
2009-01-19 22:29:09 -04:00
John Wiegley
5d41388ff3
Corrected the way that scopes are found so that xact_t can also be found as an
...
item_t (which it also is).
2008-10-29 02:00:00 -06:00
John Wiegley
bbf4da9d9b
Removed todo comments and dead code.
2008-08-17 05:19:51 -04:00
John Wiegley
ace4b65487
The register report is now mostly displaying multi-line balances correctly.
...
It still shows lots even when --lots isn't specified, though.
2008-08-10 03:49:03 -04:00
John Wiegley
548a03e725
Regular expressions supplied after 'reg' or 'bal' are working again.
2008-08-10 02:54:36 -04:00
John Wiegley
f6f4a46cf5
Moved around most of the files so that source code is in src/, documentation
...
is in doc/, etc.
2008-08-05 18:05:49 -04:00