summaryrefslogtreecommitdiff
path: root/src/textual.cc
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup whitespaceJohn Wiegley2011-08-181-5/+5
|
* Removed unused variablesJohn Wiegley2011-08-181-4/+2
|
* Rely on a default argument in textual.ccJohn Wiegley2011-07-171-1/+1
|
* Fix for Boost 1.46 and the new Filesystem libraryJohn Wiegley2011-03-231-1/+1
|
* Corrections to the regression testsJohn Wiegley2011-03-031-2/+2
|
* Support Boost 1.46 and Boost.Filesystem v3John Wiegley2011-02-281-1/+15
|
* Added "comment" and "test" directivesJohn Wiegley2011-02-121-1/+20
|
* Fixes for compilation as C++0x codeJohn Wiegley2011-02-041-1/+1
|
* Scopes can now provide a description of themselvesJohn Wiegley2010-06-241-0/+4
| | | | | | This isn't being used yet, but it likely will to improve the information presented to users if their value expressions fail to compile or evaluate.
* Added new "bold" modifier to query expressionsJohn Wiegley2010-06-221-3/+7
| | | | | | | | | | | | | | For example: ledger bal assets bold checking Or you can use expressions: ledger bal assets bold '=total > 1000' This last is identical to saying: ledger bal -l 'account =~ /assets/' --bold-if='total > 1000'
* Filename globs now surrounded by ^$John Wiegley2010-06-181-2/+2
|
* Changes for building with Visual Studio 2008John Wiegley2010-06-151-4/+4
|
* Revised how Ledger handles the "current year"John Wiegley2010-06-141-25/+32
| | | | | Now when the Y directive sets the current year for a region, it affects everything, as if the clock really were set back to that year.
* Fixed several misplaced parenthesesJohn Wiegley2010-06-131-4/+4
|
* Added support for assert, check and expr directivesJohn Wiegley2010-06-131-18/+134
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These can occur in many places: ; Within an automated transaction, the assert is evaluated every time ; a posting is matched, with the expression context set to the ; matching posting. = /Food/ assert account("Expenses:Food").total >= $100 2010-06-12 Sample Expenses:Food $100 Assets:Checking ; At file scope, the expression is evaluated with "global" scope. assert account("Expenses:Food").total == $100 ; At the top of a transction, the assertion's scope is the ; transaction. After a posting, the scope is that posting. Note ; however that account totals are only adjusted after successful ; parsing of a transaction, which means that all the assertions below ; are true, even though it appears as though the middle posting should ; affect the total immediately (which is not the case). 2010-06-12 Sample 2 assert account("Expenses:Food").total == $100 Expenses:Food $50 assert account("Expenses:Food").total == $100 Assets:Checking assert account("Expenses:Food").total == $100
* Automated xacts may now contain "deferred tags"John Wiegley2010-06-131-3/+3
| | | | | | | | | | | | | | | | For example, consider the following automated transaction: = /Food/ ; Next Date:: date + 10 (Expenses:Tax) 1.00 ; Next Date:: date + 20 This will add a metadata field named 'Next Date' to the _matching posting_, with a value that is 10 days later than that posting. It will also generate a new posting for that transaction, whose amount is the same as the matching posting. Further, it will add a 'Next Date' metadata tag to the _generated posting_ whose value is 20 days later than the date of the matching posting.
* Reformatted a commentJohn Wiegley2010-06-131-3/+3
|
* Fixed a spelling errorJohn Wiegley2010-06-131-3/+1
|
* Minor whitespace fixJohn Wiegley2010-06-131-3/+3
|
* Add support for typed metadataJohn Wiegley2010-06-121-6/+8
| | | | | | | | | | The metadata construct 'Key: Value' is now just a special case for 'Key:: "Value"'. Another after a :: in metadata setting is parsed as a full value expression and typed as such. For example: ; Key:: $400 + $500 ledger -l 'tag("Key") < $1000'
* Untabified all source filesJohn Wiegley2010-06-111-290/+290
|
* Allow fixated costs, as well as pricesJohn Wiegley2010-06-101-0/+11
| | | | | | | | | You can now establish a fixated price automatically by way of a fixated cost. The syntax for this is: 2009/11/01 Sample Assets 1 apple @ =$0.10 Equity
* Allow opt -NDEBUG build to complete without warningsJohn Wiegley2010-06-041-0/+10
|
* Further improved parsing of query expressionsJohn Wiegley2010-06-011-1/+1
| | | | Fixes #210 / D4C2DD6F-8967-4FFC-BBBC-A941F9C53475
* For Boost 1.35 and earlier, use is_regularJohn Wiegley2010-05-231-1/+6
| | | | Fixes 0F17CB7F-A000-4F99-8471-739948AD575F
* Corrected handling of context stack in the parserJohn Wiegley2010-05-221-23/+8
| | | | Fixes F4A477E6-C4F6-43B1-ABCC-4DC325C2869A
* Guard against NULL value passed to "end" directiveJohn Wiegley2010-05-221-1/+1
| | | | Fixes 89233B6D-CB21-4162-98E3-BE38B9336070
* The include directive now supports file globbingJohn Wiegley2010-03-171-5/+33
| | | | | This only happens at the base filename, not for any of the directory names for now.
* Tags were not being set properly on postingsJohn Wiegley2010-03-171-4/+4
|
* Extended regexp syntax for "payee" and "capture"John Wiegley2010-03-101-4/+32
|
* Rewrite the "print" command as a custom functionJohn Wiegley2010-03-081-0/+1
| | | | | There ended up being too many corner cases for the generalized formatter to handle.
* Added new "payee" and "capture" directivesJohn Wiegley2010-03-051-1/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The payee directive allows for transformation of payee names during the parsing of a Ledger file. This means you can record the payee name in one form, but always have it reported in another form. The syntax is (and will be): payee PAYEE_NAME REGEXP or payee PAYEE_NAME REGEXP1 REGEXP2 ... The account directive sets the account automatically based on the payee iff the base account name is Unknown. For example, if you have a bunch of transaction in Expenses:Unknown, you can assign accounts for several automatically using: account ACCOUNT_NAME PAYEE_REGEXP or account ACCOUNT_NAME PAYEE_REGEXP1 PAYEE_REGEXP2 ...
* Updated copyrights to 2003-2010John Wiegley2010-03-051-1/+1
|
* Some minor refactoring of the textual parserJohn Wiegley2010-02-051-176/+129
|
* Added a "seq" sequence property for all itemsJohn Wiegley2010-02-041-19/+28
| | | | | This indicates the absolute parsing order of every transaction and posting. It is 0 for generated items.
* Cost of a post with neg. amount should be negativeJohn Wiegley2009-12-071-0/+3
|
* Allow relative includes in the current directoryJohn Wiegley2009-12-071-4/+10
|
* Added support for a "fixed" directiveJohn Wiegley2009-11-251-10/+59
| | | | | | | | | | | | | | | | | | | It lets you specify a fixed cost for a duration of a ledger file, for example: fixed ecu $2 2008/01/01 income assets:bank:checking 1 ecu income:salary end fixed This is equivalent to: 2008/01/01 income assets:bank:checking 1 ecu {=$2} income:salary
* * and | now comment chars, for the sake of Org-modeJohn Wiegley2009-11-251-2/+4
|
* Many improvements to Ledger's Python bindingsJohn Wiegley2009-11-191-3/+3
|
* Made the account and tag directives more rationalJohn Wiegley2009-11-151-69/+81
| | | | | Now you must specify "account / end account", and "tag / end tag". For backwards compatability, plain "end" is the same as "end account".
* Did away with the "finalizer" abstractionJohn Wiegley2009-11-111-12/+1
| | | | | This was from an earlier time, when it was intended to be used by Python. But it's not needed anymore.
* Automated postings defer amount expression calculationJohn Wiegley2009-11-111-30/+45
| | | | | | | | | | | | | | | | | This allows for value expressions to be used which reference the incoming posting, for example: = Income:Clients: (Liabilities:Taxes:VAT1) (floor(amount) * 1) (Liabilities:Taxes:VAT2) 0.19 2009/07/27 * Invoice Assets:Bank:Checking $1,190.45 Income:Clients:ACME_Inc The automated posting for VAT1 will use the floored amount multiplied by a factor, while the posting for VAT2 multiples the whole amount as before.
* Timeclock events now record their file positionJohn Wiegley2009-11-111-5/+25
|
* Timeclock entries can now have notesJohn Wiegley2009-11-111-4/+18
| | | | | | | | | | Example of a tagged entry: i 2009/11/01 12:00:00 Account Payee ; :Foo: o 2009/11/01 13:00:00 Two spaces or a tab must separate account from payee, and payee from note.
* Fixed an erroneous use of operator>> in textual.ccJohn Wiegley2009-11-101-1/+1
|
* Automated transactions now use report query syntaxJohn Wiegley2009-11-101-2/+3
| | | | This returns their behavior back very close to what 2.x accepts.
* Corrected the parsing of data file directivesJohn Wiegley2009-11-101-9/+15
|
* Added "bucket" directive, as alt for AJohn Wiegley2009-11-101-6/+13
|
* Support include-ing of relative pathnamesJohn Wiegley2009-11-101-1/+11
|