Commit graph

4615 commits

Author SHA1 Message Date
Paul Beckingham
8ed1206f41 Parser
- ::findCommand removes unnecessarily lexed sub-branches.
2014-06-14 15:20:56 -04:00
Paul Beckingham
8f5e386ab0 Parser
- ::findTerminator removes unnecessarily lexed sub-branches.
2014-06-14 15:20:25 -04:00
Paul Beckingham
3f6ad23578 Parser
- ::findBinary removes unnecessarily lexed sub-branches.
2014-06-14 15:19:31 -04:00
Paul Beckingham
0500649992 Parser
- ::initialize now lexes all args up front.
2014-06-14 15:18:31 -04:00
Paul Beckingham
1b8671b58e Tree
- Implemented ::removeAllBranches.
2014-06-14 14:19:49 -04:00
Paul Beckingham
fb4bf3efba Tree
- After removing a branch, free the memory.
2014-06-14 14:13:34 -04:00
Paul Beckingham
7d4e166277 Lexer
- Implemented an overload of ::token_split that preserveѕ types.
2014-06-14 13:46:10 -04:00
Paul Beckingham
a892abf366 CmdCustom
- Added placeholder for problematic parenthesis injection for report filters.
2014-06-14 12:42:07 -04:00
Paul Beckingham
4bf3364bb7 DOM
- Preserves more original types.
2014-06-11 23:13:37 -04:00
Paul Beckingham
39c9f54d16 Unit Tests
- Upgraded tests to use new template.
2014-06-11 22:26:28 -04:00
Paul Beckingham
a77e4292ab Unit Tests
- Removed obsolete tests.
2014-06-11 21:57:17 -04:00
Paul Beckingham
456b982ced DOM
- Updated DOM to use Variant ovjects, which carry a type which improves
  expression evaluation.
2014-06-11 21:53:00 -04:00
Paul Beckingham
e8474fc145 Unit Tests
- Removed obsolete tests.
2014-06-11 06:39:11 -04:00
Paul Beckingham
699d85be29 Unit Tests
- Removed obsolete tests.
2014-06-11 06:37:37 -04:00
Paul Beckingham
f7a68df299 Unit Tests
- Removed obsolete tests.
2014-06-11 06:35:03 -04:00
Paul Beckingham
39da3d68ca Unit Tests
- Removed obsolete tests.
2014-06-11 06:33:44 -04:00
Paul Beckingham
ccc0fa7c30 Unit Tests
- Removed obsolete tests.
2014-06-11 06:31:33 -04:00
Paul Beckingham
a76614aabb Unit Tests
- Removed obsolete tests.
2014-06-11 06:28:56 -04:00
Paul Beckingham
50a12d3598 Unit Tests
- Removed obsolete tests.
2014-06-11 06:26:25 -04:00
Paul Beckingham
1cf79ffda7 Unit Test
- Removed obsolete test.
2014-06-11 06:23:13 -04:00
Paul Beckingham
110592da8c Unit Tests
- Removed obsolete test.
2014-06-11 06:22:30 -04:00
Paul Beckingham
a011800764 Unit Tests
- Upgraded disabled test to active.
2014-06-11 06:22:06 -04:00
Paul Beckingham
a93ae1ca07 Unit Tests
- Removed obsolete test.
2014-06-11 06:21:16 -04:00
Paul Beckingham
7512dd21aa Unit Tests
- Removed obsolete test.
2014-06-11 06:20:36 -04:00
Paul Beckingham
6ae40dbc57 Unit Tests
- Removed oboslete test.
2014-06-11 06:20:02 -04:00
Paul Beckingham
9a74fbe4a9 Variant
- ISO8601 periods contain uppercase characters.
2014-06-10 23:09:41 -04:00
Paul Beckingham
bd53dd2aeb Variant
- Rewrite ::operator std::string to yield more accurate duration renditions.
2014-06-10 22:34:52 -04:00
Paul Beckingham
3727d2f09c Task
- The 'recur' attribute should be stored in raw form.
2014-06-10 20:05:50 -04:00
Paul Beckingham
24e2f24301 Unit Tests
- Corrected urgency unit tests that had been disabled and had rotted.
2014-06-10 15:53:05 -04:00
Paul Beckingham
2554b29041 Lexer
- Needed a shift counter, rather than a read counter, as ::token was
  lexing '-10d' into '-' and '-10d', which when evaluated is '--10d',
  which yields 10d.
2014-06-10 15:42:21 -04:00
Paul Beckingham
3c0a17c195 Task
- Removed urgency diagnostics, now that the 'info' command displays them.
2014-06-09 23:11:47 -04:00
Paul Beckingham
0a67913b48 Dates
- Fixed a loose, ill-defined, poorly constructed excuse for a detector
  of date ordinals ("1st, "22nd", "3rd" and "6th").
2014-06-09 22:19:41 -04:00
Paul Beckingham
43d953094b Unit Tests
- Corrected test count, which was artificially low, hiding some failing tests.
2014-06-09 20:47:19 -04:00
Paul Beckingham
310cafcc7d Unit Tests
- Enabled all urgency unit tests, even though many fail. Time to fix them.
2014-06-09 19:43:46 -04:00
Paul Beckingham
c9ba7ae301 Unit Tests
- Corrected Lexer tests that used obsolete duration forms.
- Added more duration test parses.
2014-06-09 18:03:36 -04:00
Paul Beckingham
11a4c58735 Lexer
- Factored out an invariant.
2014-06-09 18:02:34 -04:00
Paul Beckingham
05d4ac16a3 Eval
- Now prints the evaluated form, instead of the input form in debug mode, after
  successful source lookup.
2014-06-09 18:01:45 -04:00
Paul Beckingham
d0d8d5eece Duration
- Dropped support for parsing many intermediate representations. For example,
  this list:

   monthly, months, month, mnths, mths, mth, mos, mo

  is now reduced to:

    monthly, months, month, mo
2014-06-09 17:14:32 -04:00
Paul Beckingham
ff966c069c Tasksh
- Took the broken tasksh program out back behind the barn and shot it.
  It will be rewritten as a separate project, and extension.
2014-06-08 18:24:30 -04:00
Paul Beckingham
63eb32d177 Task
- Disabled ambiguous date parsing. Ain't nobody got time for that.
2014-06-08 16:20:31 -04:00
Paul Beckingham
20d4e37b40 Dates
- Corrected implementation of all named dates. There were ... issues.
2014-06-08 15:02:08 -04:00
Paul Beckingham
22f1bf709e CmdCalc
- Set ambiguity to false, thus disabling recognition of certain date forms.
2014-06-08 14:18:34 -04:00
Paul Beckingham
ddcadb35f7 Filter
- Set ambiguity to false, thus disabling recognition of certain date forms.
2014-06-08 14:17:50 -04:00
Paul Beckingham
0aa323164a Unit Tests
- Added Lexer tests to make sure '9th' and '10th' are recognized as identifiers.
2014-06-08 14:16:46 -04:00
Paul Beckingham
4041639e36 Lexer
- Added downgrade from typeNumber to typeIdentifer if a number is followed by a
  letter, thus supporting "9th" as an identifier. This causes much breakage.
2014-06-08 14:15:07 -04:00
Paul Beckingham
f316413139 CmdCalc
- The 'calc' command (and only the 'calc' command) propagates the rc.debug
  setting to Eval.  This provides the means to debug expression problems.
2014-06-08 13:10:20 -04:00
Paul Beckingham
9390e17871 Documentation
- Removed obsolete task-tutorial.5 man page. Tutorials will now only
  reside online. This represents a gradual move towards single-source
  documentation.
2014-06-08 11:19:11 -04:00
Paul Beckingham
93de3e3bb0 TW-244
- TW-244 task add "Description (Information)" results in
         "Description ( Information)".
2014-06-08 10:34:45 -04:00
Paul Beckingham
7ba99d6100 TW-250
- TW-250 Opening parenthesis in description gets padded in task 2.0.0 bet 2
         (thanks to Michelle Crane).
2014-06-08 10:05:07 -04:00
Paul Beckingham
46a42847b0 Tw-251
- TW-251 extra spaces added after ( and / (thanks to Andy Spiegl).
2014-06-08 10:02:51 -04:00