Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix Query Parser for Automated Transactions (#1) | Igbanam Ogbuluijah | 2024-06-25 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add failing test for use case TBH I don't know what I'm doing here, but this seems to fail for the right reasons enough to reflect the parser bug here. * Append to the ident on a closing brace ')' When parsing the automated rule, a scanner reads the line left-to-right char-by-char. The default behaviour is to append the char under the cursor to some `ident` string. When the cursor is on a ')', it skips the default handling and switches into some special handling: it tries to test the string it's reading if it's one of the keywords it knows, to select which type of token just got scanned. If what was scanned is not a known token, it defaults to `token_t::TERM` and returns a new token with the currently accumulated `ident` as a `token_t::TERM`. Issue is, since it skipped the appending to do some custom handling, the `token_t::TERM` will always be without its closing brace. The scanner needs to append the character under the cursor if it's falling through to default processing. * fix test case - ensure proper spacing for the posting to have an amount - ensure the posting balances against an account - the meaning of the number after `->` is the exit code * undo wrong approach * consume_next if unbalanced_braces * how this can be extended | ||||
* | Use #pragma once | Alexis Hildebrandt | 2023-04-10 | 1 | -4/+1 |
| | |||||
* | Update copyright year | Alexis Hildebrandt | 2023-02-02 | 1 | -1/+1 |
| | | | | [skip ci] | ||||
* | Update copyright statement for 2022 | Alexis Hildebrandt | 2022-07-02 | 1 | -1/+1 |
| | |||||
* | Change header guard names to use `INCLUDED_` prefix | Phil Newton | 2022-04-06 | 1 | -3/+3 |
| | | | | Fixes #2049 | ||||
* | Use correct int return type for stream input operations | kanreki | 2021-12-08 | 1 | -2/+1 |
| | | | | | | | | This makes it safe to compare results to -1 to indicate EOF, regardless of whether char is considered signed or unsigned; and so eliminates compiler warnings on platforms such as ARM. Fixes bug #2058. | ||||
* | Revert "Correction to the way parens are parsed in query expressions" | John Wiegley | 2020-05-07 | 1 | -1/+0 |
| | | | | This reverts commit 49b07a1c19489547b859d61fbc5c240aff224dda. | ||||
* | Correction to the way parens are parsed in query expressions | John Wiegley | 2019-09-17 | 1 | -0/+1 |
| | |||||
* | [misc] Update year in copyright notice to 2017 | Alexis Hildebrandt | 2018-01-27 | 1 | -1/+1 |
| | | | | [ci skip] | ||||
* | [misc] Update year in copyright notice to 2017 | Alexis Hildebrandt | 2017-01-05 | 1 | -1/+1 |
| | | | | [ci skip] | ||||
* | [misc] Update year in copyright notice to 2016 | Alexis Hildebrandt | 2016-01-02 | 1 | -1/+1 |
| | | | | [ci skip] | ||||
* | Bump copyright notice to 2015 | Alexis Hildebrandt | 2014-12-27 | 1 | -1/+1 |
| | | | | | | The following script makes it a no-brainer: % NEXT_YEAR=2015; ag -l 'Copyright.*Wiegley' \ | xargs sed -i '' -e "s/\(Copyright.*\)-20[0-9]\{2\}/\1-${NEXT_YEAR}/" | ||||
* | Bump copyright information to 2014 | Alexis Hildebrandt | 2014-02-02 | 1 | -1/+1 |
| | |||||
* | Bump copyright information to 2013 | John Wiegley | 2013-02-18 | 1 | -1/+1 |
| | |||||
* | Always call TRACE_CTOR at the end of constructors | John Wiegley | 2012-03-20 | 1 | -3/+5 |
| | |||||
* | Added #if's for building optimized with Clang | John Wiegley | 2012-03-07 | 1 | -0/+2 |
| | |||||
* | Corrected several compile and link problems | John Wiegley | 2012-03-06 | 1 | -0/+1 |
| | |||||
* | Removed unneeded code | John Wiegley | 2012-03-02 | 1 | -2/+0 |
| | |||||
* | Increased file copyrights to 2012 | John Wiegley | 2012-02-29 | 1 | -1/+1 |
| | |||||
* | Removed unneeded default cases | John Wiegley | 2012-02-17 | 1 | -1/+0 |
| | |||||
* | Fixes for variable shadowing (23/28) | John Wiegley | 2012-02-17 | 1 | -2/+2 |
| | |||||
* | More report query fixes | John Wiegley | 2011-11-10 | 1 | -2/+2 |
| | |||||
* | Corrections to the query language parser | John Wiegley | 2011-11-10 | 1 | -1/+1 |
| | | | | Fixes #552 | ||||
* | "only" now a report query modifier for --only | John Wiegley | 2010-06-24 | 1 | -0/+4 |
| | | | | This fits with "show" and "bold", etc. | ||||
* | Added report query modifiers: for, since, until | John Wiegley | 2010-06-22 | 1 | -7/+17 |
| | | | | | | | | | Now instead of ledger reg expense -p "this month", you can say: ledger reg expense for this month And as a shorthand for "for until this month", you can just say "until this month" or "since this month". | ||||
* | Added new "bold" modifier to query expressions | John Wiegley | 2010-06-22 | 1 | -35/+59 |
| | | | | | | | | | | | | | | 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' | ||||
* | Changes for building with Visual Studio 2008 | John Wiegley | 2010-06-15 | 1 | -0/+3 |
| | |||||
* | Untabified all source files | John Wiegley | 2010-06-11 | 1 | -90/+90 |
| | |||||
* | Further improved parsing of query expressions | John Wiegley | 2010-06-01 | 1 | -11/+16 |
| | | | | Fixes #210 / D4C2DD6F-8967-4FFC-BBBC-A941F9C53475 | ||||
* | Updated copyrights to 2003-2010 | John Wiegley | 2010-03-05 | 1 | -1/+1 |
| | |||||
* | Added several more missing virtual keywords | John Wiegley | 2009-11-21 | 1 | -1/+1 |
| | |||||
* | Some reformatting in query.h | John Wiegley | 2009-11-17 | 1 | -35/+37 |
| | |||||
* | Corrected parsing of the 'expr' report query term | John Wiegley | 2009-11-15 | 1 | -1/+5 |
| | |||||
* | Stylistic change: assert(0) -> assert(false) | John Wiegley | 2009-11-13 | 1 | -2/+2 |
| | |||||
* | query_t objects are now convertible to predicate_t | John Wiegley | 2009-11-10 | 1 | -2/+10 |
| | |||||
* | Redesigned the expr_t, predicate_t, query_t classes | John Wiegley | 2009-11-09 | 1 | -0/+291 |