Commit graph

1848 commits

Author SHA1 Message Date
John Wiegley
b7632e7475 Removed an unnused member. 2009-02-05 02:45:29 -04:00
John Wiegley
c58cd88299 Reworked how the REPL is handled. 2009-02-05 02:45:26 -04:00
John Wiegley
4f174014b9 When copying an expr_t object, don't copy the compiled state. 2009-02-05 02:45:26 -04:00
John Wiegley
de816e8307 Whitespace fix. 2009-02-05 02:45:24 -04:00
John Wiegley
db52ad86d5 Don't give an error if the init file cannot be found. 2009-02-05 02:16:43 -04:00
John Wiegley
3f960be96c Removed all references to the old binary cache. 2009-02-04 20:57:14 -04:00
John Wiegley
f8ba4165fe Clear the master account totals after a report is done. 2009-02-04 20:46:56 -04:00
John Wiegley
7d628d88ff Moved the --pager option to the session object, rather than the report object. 2009-02-04 20:46:45 -04:00
John Wiegley
863b5d8144 Added proper handling of SIGINT (C-c) and SIGPIPE (pager quits). 2009-02-04 20:46:08 -04:00
John Wiegley
04ac5ffcb4 Whitespace fix. 2009-02-04 20:45:43 -04:00
John Wiegley
796feb2634 Added code to quit more gracefully. Ctrl-C still needs work. 2009-02-04 20:11:27 -04:00
John Wiegley
ea1e898eec Minor fixes to the REPL when using libedit. 2009-02-04 19:58:56 -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
73cf3b01fb Added structural support in main() for using a REPL. 2009-02-04 19:55:08 -04:00
John Wiegley
b9603a1512 Moved ptristream into its own file. 2009-02-04 03:54:29 -04:00
John Wiegley
1cc33531ea Simplified the textual parser, and improved metadata support. 2009-02-04 03:34:37 -04:00
John Wiegley
28da097fc2 Several improvement to transaction parsing. 2009-02-04 00:52:52 -04:00
John Wiegley
24ef163ba5 Removed unneeded member variables. 2009-02-04 00:35:02 -04:00
John Wiegley
2e9c14ef30 Don't store the amount expression object in transactions.
This is unnecessary since binary caching is no longer being used.
2009-02-03 19:06:56 -04:00
John Wiegley
71642d98de Deleted unused source files: gnucash, ofx, qif. 2009-02-03 19:06:56 -04:00
John Wiegley
2ce7ae376c Removed used of src_idx. 2009-02-03 19:06:53 -04:00
John Wiegley
8948e161cd A little code rearranging. 2009-02-03 18:31:52 -04:00
John Wiegley
f49dfce302 Fixed the processing of O_NOT operations. 2009-02-03 18:11:59 -04:00
John Wiegley
918f76b263 Don't allow boolean operations to be applied to masks. 2009-02-03 17:47:14 -04:00
John Wiegley
6bd82c6bcd Implemented a text parsing optimization.
Amounts, costs and assigned amounts are now parsed as regular amounts.  To
have a full value expression at any of those positions, surround it with
parentheses.  The reason for this is that the amount parser is far simpler and
quicker -- and by far the common case -- compared to the full expression
parser.
2009-02-03 17:47:02 -04:00
John Wiegley
dfe04b9943 Removed some dead code. 2009-02-03 17:46:04 -04:00
John Wiegley
43c4636d9d Removed the global references to session->report. 2009-02-03 13:03:10 -04:00
John Wiegley
3434650848 Removed the binary caching code, and the XML, QIF and Gnucash parsers. 2009-02-03 12:22:10 -04:00
John Wiegley
3db0accc68 Added braces to avoid a compiler warning. 2009-02-03 01:00:21 -04:00
John Wiegley
177b5adc98 Added a comment. 2009-02-03 00:48:01 -04:00
John Wiegley
ad34a71646 Corrected a display error when showing error context. 2009-02-03 00:45:14 -04:00
John Wiegley
56b3a49f63 Fixed some warnings caused by using g++ 4.3. 2009-02-02 21:46:35 -04:00
John Wiegley
2a0f8d5099 Fixed a misspelled parameter name. 2009-02-02 17:55:41 -04:00
John Wiegley
673f7f7173 Fixed bad parameter name. 2009-02-02 16:36:44 -04:00
John Wiegley
c1cb06e009 Updated some internal documentation. 2009-02-02 15:54:28 -04:00
John Wiegley
bd9ffed9db Calculate the right-hand side O_MATCH, now that masks are values. 2009-02-02 15:17:02 -04:00
John Wiegley
46b35a015b Don't allow implicit matching of strings against masks, =~ is needed. 2009-02-02 15:16:40 -04:00
John Wiegley
cf9b4a3873 Removed report_error() function and reordered context for parsing errors. 2009-02-02 15:16:18 -04:00
John Wiegley
b18214372e Use > quoting characters when excerpting from the user's data file. 2009-02-02 00:28:12 -04:00
John Wiegley
42bed9c001 Added a missing brace. 2009-02-02 00:24:56 -04:00
John Wiegley
9540406af1 Simplified error context handling. 2009-02-02 00:24:26 -04:00
John Wiegley
5d9015a3c1 Moved error code into error.h. 2009-02-02 00:23:02 -04:00
John Wiegley
fb5428ce85 Added support for metadata and tagging, and made regexs a first-class type. 2009-02-01 22:10:32 -04:00
John Wiegley
7128fdb637 Added a missing throw() in the formatter. 2009-02-01 22:09:27 -04:00
John Wiegley
38c1b0feb0 Updated binary cache version. 2009-02-01 22:09:15 -04:00
John Wiegley
cadb02c257 Fixed a display problem when dumping O_MATCH expressions. 2009-02-01 18:36:40 -04:00
John Wiegley
ae65e8ae05 Moved the pre-commands to their own file, and created new "args" command. 2009-02-01 18:36:28 -04:00
John Wiegley
66b097bda7 Moved the args_to_predicate function to predicate.cc. 2009-02-01 18:35:44 -04:00
John Wiegley
59a080cdb6 Changed many uses of "unsigned long" to std::size_t. 2009-02-01 18:33:46 -04:00
John Wiegley
e61696a91b Moved chain_xact_handlers into its own file, chain.h and chain.cc. 2009-02-01 18:29:30 -04:00