John Wiegley
9f81c798ee
fn_market can now accept a commodity name for arg 0
2012-03-08 01:08:08 -06:00
John Wiegley
113fb0ee6a
Added --historical option
2012-03-08 01:00:16 -06:00
John Wiegley
21e8b7f6f0
Added nail_down() for pinning market value exprs
2012-03-08 00:55:06 -06:00
John Wiegley
17a84642fb
Corrected calculation of market valuation expressions
2012-03-08 00:54:19 -06:00
John Wiegley
c86bff2707
Whitespace fix
2012-03-08 00:44:48 -06:00
John Wiegley
4d01143400
Many improvements to lambdas and function calling
2012-03-08 00:44:40 -06:00
John Wiegley
ae4ef7a88d
More work done on proper evaluation of lambdas
2012-03-07 21:22:07 -06:00
John Wiegley
e7de77d8df
Added #if's for building optimized with Clang
2012-03-07 14:30:34 -06:00
John Wiegley
7e250696e0
Many options now have additive effect
...
For example, -A and -V used to override each other, whereas now:
-A report the average amount
-V report all amounts at current value
-AV report the current value of the average
-VA report the average of all current values
2012-03-07 12:46:46 -06:00
John Wiegley
77292ac3cd
Whitespace fix
2012-03-07 11:31:15 -06:00
John Wiegley
28b3453f50
Added a DEBUG statement
2012-03-07 11:31:08 -06:00
John Wiegley
f525dabf39
Removed unnecessary method definition
2012-03-07 11:31:02 -06:00
John Wiegley
0b8d024efc
Removed unused file series.h
2012-03-07 11:30:45 -06:00
John Wiegley
c33d7480a6
Created merged_expr_t class for chained expressions
2012-03-07 10:35:32 -06:00
John Wiegley
be778e3879
Changed definition of the DECL1 macro
2012-03-07 10:35:01 -06:00
John Wiegley
90029d9925
Allow identifier names to begin with _
2012-03-07 10:33:46 -06:00
John Wiegley
a19578a607
Added "price" value expression for posts
2012-03-07 10:33:32 -06:00
John Wiegley
755495ee8a
Changed scope of two DEBUG statements
2012-03-07 10:33:06 -06:00
John Wiegley
dd6bcf347e
Removed an unnecessary assert
2012-03-07 10:32:46 -06:00
John Wiegley
ec1f15a4b2
Made amount_t::price return an optional<amount_t>
2012-03-07 10:32:35 -06:00
John Wiegley
b1107f85ae
Removed value_t::price and balance_t::price
2012-03-07 10:32:24 -06:00
John Wiegley
7bb83173da
Added some missing DEBUG #if's
2012-03-07 08:34:15 -06:00
John Wiegley
b17b6cd9d4
Fixed parameter and argument scoping for O_CALL nodes
2012-03-07 05:38:13 -06:00
John Wiegley
1e18536a8c
Deferred notes were being processed too late
2012-03-07 05:37:49 -06:00
John Wiegley
89e0472b50
Another fix to metadata value parsing
2012-03-07 05:37:38 -06:00
John Wiegley
65835a89cc
Dump IDENT referral values in op_t::dump
2012-03-07 05:21:40 -06:00
John Wiegley
76f97a63da
Added parsing support for the many value directives
2012-03-07 05:20:42 -06:00
John Wiegley
69b25d367e
Call register_account for posts created by auto xacts
2012-03-07 05:19:46 -06:00
John Wiegley
3ae4a38e4d
Fixed parsing of "deferred notes" in auto xacts
2012-03-07 05:19:21 -06:00
John Wiegley
7eb1eddcf6
Removed unused function expr_t::op_t::wrap_scope
2012-03-07 05:18:33 -06:00
John Wiegley
2b108c66cc
Added an empty_scope_t utility class
2012-03-07 05:16:34 -06:00
John Wiegley
c19b7099b2
Fix parsing of metadata values containing spaces
2012-03-07 05:16:05 -06:00
John Wiegley
150ca971ad
Call boost::regex, not boost::make_regex
2012-03-07 03:38:24 -06:00
John Wiegley
c86bbd4547
Whitespace fixes
2012-03-07 03:38:09 -06:00
John Wiegley
023033f182
Added a few comments
2012-03-07 00:33:24 -06:00
John Wiegley
9ea5b60899
Whitespace fixes
2012-03-07 00:32:56 -06:00
John Wiegley
17782c9cfe
Simplified commodity_history_t
2012-03-06 23:05:06 -06:00
John Wiegley
71d0033b6f
Corrected several compile and link problems
2012-03-06 23:04:27 -06:00
John Wiegley
488355e5d9
Added symbol_t::operator==()
2012-03-06 04:13:54 -06:00
John Wiegley
4a93a8313e
Whitespace fix
2012-03-06 04:13:46 -06:00
John Wiegley
97d68ebc8c
Added "value" sub-directive for commodity directive
2012-03-06 03:24:06 -06:00
John Wiegley
eb3591f898
Implemented annotated_commodity_t::find_price
...
Most specifically, it now respects a valuation expression associated
with the commodity.
2012-03-06 02:01:25 -06:00
John Wiegley
9509a7b881
Made commodity_t::find_price a virtual function
2012-03-06 02:00:49 -06:00
John Wiegley
02ffa7a515
Changed the category of a few DEBUG statements
2012-03-06 02:00:36 -06:00
John Wiegley
8ae2fb8721
Add support for valuation expressions on commodities
2012-03-05 23:01:41 -06:00
John Wiegley
7b12b3041d
Make exprbase_t::text() a const member function
2012-03-05 22:47:06 -06:00
John Wiegley
acb5e1beea
Generalized function call parsing
...
Directly calling a lambda now works:
(x -> x + 10)(10) => 20
2012-03-05 22:01:41 -06:00
John Wiegley
59a16e59ee
Simplified Python import in a journal file
2012-03-05 21:48:45 -06:00
John Wiegley
97dbf379d5
Rewrote the way annotated commodities are managed
...
The new scheme should be much more efficient, and allows for future
growth of what annotations may appear on a commodity.
2012-03-05 17:50:17 -06:00
John Wiegley
ff9cf572fe
Added (disabled) code to stop sorting generated balancing postings
2012-03-05 17:49:11 -06:00