Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Got pre-compiled headers working again, which are used if --devel is passed to | John Wiegley | 2008-08-03 | 7 | -17/+47 |
| | | | | acprep. | ||||
* | Rearranged the code a bit, breaking walk.cc into several different files: | John Wiegley | 2008-08-03 | 33 | -1477/+1874 |
| | | | | | | | | | | compare compare_items<T> handler item_handler<T> iterators used to iterators sets of journal objects filters derived from item_handler, they morph the result set output derived from item_handler, these do the printing Also, created a new 'help' files which contains just Ledger's help text. | ||||
* | Added several missing copyright notices. | John Wiegley | 2008-08-03 | 23 | -0/+713 |
| | |||||
* | Got date, payee and accounts back into the register report. | John Wiegley | 2008-08-03 | 10 | -50/+82 |
| | |||||
* | Re-enabled almost all of the old reporting code, which means it compiles now | John Wiegley | 2008-08-02 | 6 | -246/+315 |
| | | | | within the new scheme. | ||||
* | Moved xact_xdata_t into xact_t itself, as a set of "extended data" that might | John Wiegley | 2008-08-02 | 19 | -387/+387 |
| | | | | | | | | be gathered during reporting. Removed the references to accounts and such from the mask logic, which means that the value expression "acount =~ /foo/" is needed in place of just "/foo/". | ||||
* | Changed the way that bare masks are parsed. There is still some coupling | John Wiegley | 2008-08-02 | 5 | -55/+50 |
| | | | | here, albeit just through flag values. It needs to be changed, though. | ||||
* | More infrastructure work toward getting journal objects to provide their own | John Wiegley | 2008-08-02 | 11 | -75/+161 |
| | | | | information in an abstract manner. | ||||
* | Formatting now relies exclusively on value expressions. | John Wiegley | 2008-08-02 | 18 | -136/+133 |
| | | | | | | | | | | | | | | | | | | | | What this means is that the utility code, basic math, value expressions, string formatting and option handling are now entirely decoupled from the rest of the code. This decoupling not only greatly simplifies the more basic parts of Ledger, but makes it much easier to test and verify its completeness. For example, when the formatting code %X is seen by the format parser, it turns into a call to the expression function fmt_X, which must be defined when the format string is first compiled against an object. If that object is a transaction, the transaction's scope will be the first to have a chance at providing a definition. If an account is being reported, it will. If neither does, the next scope in sequence -- soon to be the current report -- will, and then the session object that "owns" the current Ledger session. In 2.6, the formatting code new everything about transaction and accounts, and relied on flags to communicate special details between them. Now the transaction will offer the details for its own reporting, while the formatter worries only about strings and how to output them. | ||||
* | Restored the interval_t time and added a new "period" debugging command. | John Wiegley | 2008-08-02 | 5 | -220/+154 |
| | | | | | | You can use 'ledger period "daily in june"' to find out how Ledger will parse that date string, plus up to the first 20 dates it encounters in the range. Note that the 'end' displayed is currently exclusive. | ||||
* | Journal data structures now use date_t instead of datetime_t. | John Wiegley | 2008-08-01 | 26 | -250/+308 |
| | | | | | | | | This means transactions can only have day-level granularity -- which has always been the case from an data file point of view. The advantage to this restriction is that reports will now be immune from daylight savings related bugs, where a transaction falls to the wrong side of a --monthly report, for example. | ||||
* | Added a new 'format' debugging command, which dissects the formatting | John Wiegley | 2008-08-01 | 9 | -15/+65 |
| | | | | expression in its argument. | ||||
* | Turned some #if 0'd code into a comment. | John Wiegley | 2008-08-01 | 1 | -43/+32 |
| | |||||
* | Improved the output from some debugging commands. | John Wiegley | 2008-08-01 | 4 | -24/+49 |
| | | | | | | | | | There are now three commands one can use to interact with value expressions directly: ledger parse EXPR # shows the parse tree resulting from EXPR ledger compile EXPR # shows what the compiled tree looks like ledger eval EXPR # print the resulting value, useful in scripts | ||||
* | Value expressions now auto-compile themselves on first use if the expr_t | John Wiegley | 2008-08-01 | 2 | -23/+39 |
| | | | | | object is not constant. This saves classes that use expr_t from having to track such a detail themselves. | ||||
* | Re-implemented ?: parsing in value expressions. "a ? b : c" is implemented by | John Wiegley | 2008-08-01 | 3 | -10/+59 |
| | | | | | translating it into the equivalent syntax tree "(a & b) | c", since this expression evaluates to the value of b if a is true, otherwise c. | ||||
* | Simplified the format_t code so that it no longer references any particulars | John Wiegley | 2008-08-01 | 6 | -595/+545 |
| | | | | about journal objects. This is all done through value expressions now. | ||||
* | Change many uses of for+iterator to use Boost.Foreach. | John Wiegley | 2008-07-31 | 26 | -579/+370 |
| | |||||
* | Revised the way that exceptions are thrown around. Instead of context being a | John Wiegley | 2008-07-31 | 36 | -407/+243 |
| | | | | | | | complicated string of pointers, it's now just a global block of text that gets appended to as the error is being thrown up, and can be displayed at the catch point if desired. There are almost no cases where a thrown exception will not result in an error message being displayed to the user. | ||||
* | Cleaned up some method names and documentation relating to values. | John Wiegley | 2008-07-31 | 7 | -102/+128 |
| | |||||
* | A new binary_cache_t object has been creating to manage saving and restoring a | John Wiegley | 2008-07-31 | 20 | -1068/+1203 |
| | | | | | Ledger session from a cache file. It doesn't work at all yet, though at least the major structures are in place now. | ||||
* | Fixed the clean targets in Makefile.am. Use 'all-clean' to wipe everything | John Wiegley | 2008-07-30 | 1 | -13/+17 |
| | | | | generated. | ||||
* | Corrected a failing test. | John Wiegley | 2008-07-30 | 3 | -3/+6 |
| | |||||
* | Updated acprep to reflect a more modern OS X system. | John Wiegley | 2008-07-30 | 1 | -11/+9 |
| | |||||
* | Enabled a huge number of warning flags for g++ in acprep, and fixed them all | John Wiegley | 2008-07-30 | 26 | -137/+154 |
| | | | | | | except for several unused parameter warnings (because there is so much code still #if 0'd out), and one implicit conversion from long long to long which still has to be dealt with. | ||||
* | Reorganized the ordering of filenames in Makefile.am, to better reflect | John Wiegley | 2008-07-30 | 1 | -28/+34 |
| | | | | Ledger's internal architecture. | ||||
* | Merged over fix to #205 from v2.6.1b, which deals with small commodity | John Wiegley | 2008-07-29 | 2 | -8/+11 |
| | | | | rounding. | ||||
* | The register report has begun printing real data, although not all the pieces | John Wiegley | 2008-07-29 | 7 | -55/+53 |
| | | | | are in place yet and the formatting is still off. | ||||
* | The next value expression scheme is working, but the individual accessor | John Wiegley | 2008-07-29 | 9 | -41/+127 |
| | | | | functions for each of the journal objects has yet to be ported. | ||||
* | Moved around and renamed a very large amount of code in order to rationalize | John Wiegley | 2008-07-29 | 43 | -2315/+2264 |
| | | | | the way that value expressions extract information from journal objects. | ||||
* | Changed the way scopes are structured for an upcoming design change. | John Wiegley | 2008-07-29 | 12 | -3632/+29 |
| | |||||
* | Move the value expression code into libamounts, since it really belongs with | John Wiegley | 2008-07-29 | 2 | -12/+12 |
| | | | | value_t, rather than the rest of Ledger proper. | ||||
* | Value expression architecture is now rewritten, but the functionality of the | John Wiegley | 2008-07-29 | 41 | -709/+4082 |
| | | | | | | | old system (for example, the meaning of 'a') has yet to be restored. In the new scheme, this will be done by definition a function outside of the value expression logic, rather than the tight coupling between journal innards and value expressions that occurred in 2.x. | ||||
* | Added the skeleton for the upcoming value_expr unit tests. | John Wiegley | 2008-07-28 | 3 | -1/+57 |
| | |||||
* | Cleaned up the value expression code a bit before undertaking the real work of | John Wiegley | 2008-07-27 | 11 | -1241/+170 |
| | | | | getting everything back up to what it was (plus the new code written for 3.0). | ||||
* | Merge branch 'master' into v2.7a | John Wiegley | 2008-07-27 | 8 | -34/+247 |
|\ | |||||
| * | Added the concept of "balance setting transactions". | John Wiegley | 2008-07-27 | 5 | -6/+209 |
| | | |||||
* | | Updated all copyright messages to 2003-2008. | John Wiegley | 2008-07-27 | 45 | -45/+45 |
| | | |||||
* | | Merge branch 'master' into v2.7a. | John Wiegley | 2008-07-27 | 1 | -2/+2 |
|\| | | | | | | | The only change to come forward was updating the binary version number. | ||||
| * | Another quick optimization that cuts down on memory allocation. | John Wiegley | 2008-07-26 | 1 | -3/+5 |
| | | |||||
| * | Added a simple optimization to the way amount strings are parsed. | John Wiegley | 2008-07-26 | 3 | -26/+25 |
| | | |||||
| * | Increased binary cache file internal version number. | John Wiegley | 2008-07-26 | 1 | -2/+2 |
| | | |||||
* | | 'make check' is now working again. Also, conversion from amount_t to/from | John Wiegley | 2008-07-27 | 23 | -150/+157 |
| | | | | | | | | | | | | | | double has been disabled, because I am no longer packaging the gdtoa library with Ledger (because double conversion really has nothing to do with what Ledger does). If you wish to use it, you can find gdtoa in cpp-rewrite-2006, under a sub-directory of the same name. | ||||
* | | A large body of work to get the register report printing again, but still | John Wiegley | 2008-07-27 | 19 | -441/+1054 |
| | | | | | | | | fails due to the fact that 2.x value expression syntax is not restored. | ||||
* | | The --verify option is now working properly again. Use "--verify --verbose" | John Wiegley | 2008-07-26 | 9 | -48/+98 |
| | | | | | | | | if you wish to see memory usage statistics along with a top-level trace. | ||||
* | | --verify works again, but the memory totals at the end still need work. | John Wiegley | 2008-07-26 | 37 | -280/+725 |
| | | |||||
* | | Parsing now works again. And there was much rejoicing. | John Wiegley | 2008-07-24 | 11 | -181/+379 |
| | | |||||
* | | There are no more asserts or exceptions while parsing, but still there are | John Wiegley | 2008-07-24 | 2 | -5/+48 |
| | | | | | | | | many balancing errors. | ||||
* | | More work toward getting the textual parser working again. Since this means | John Wiegley | 2008-07-24 | 16 | -211/+381 |
| | | | | | | | | that value expressions must work, there are a lot of details involved. | ||||
* | | More fixes to restore parsing capability. | John Wiegley | 2008-07-23 | 2 | -16/+22 |
| | |