Commit graph

4556 commits

Author SHA1 Message Date
Paul Beckingham
b01906cd62 Unit tests
- New command line parser is live for DOM access and DOM testing.
2014-04-24 12:00:50 -04:00
Paul Beckingham
0dc73d759b DOM
- Migrated DOM off A3, onto A3t.  First live use of new parser.
2014-04-24 11:48:43 -04:00
Paul Beckingham
d99f40eaad Code Cleanup
- Removed obsolete text.cpp splitq funciton, which is superceded by
  Lexer::split.
2014-04-24 09:35:02 -04:00
Paul Beckingham
b0b176827e A3
- Switched from splitq to Lexer::split for improved arg separation.
2014-04-24 09:32:26 -04:00
Paul Beckingham
8a5d7bb569 Unit Tests
- Added more Lexer::split tests.
2014-04-24 09:08:19 -04:00
Paul Beckingham
26d9be8164 Lexer
- Reduced Lexer::word to simply distinguish quoted and unquoted strings, that
  may contain escaped characters.
2014-04-24 09:06:04 -04:00
Paul Beckingham
386bcea60e Text
- Removed splitq function and tests, migrated code over to the new
  Lexer::split.
2014-04-23 23:20:56 -04:00
Paul Beckingham
611812007a Lexer
- Implemented Lexer::word, which is just like ::token, but does not
  understand dates, durations or operators.
- Implemented Lexer::split, which uses Lexer::word.
- Added unit tests.
2014-04-23 23:19:41 -04:00
Paul Beckingham
d099a4edfd Text Handling
- Migrated the splitq implementation over to the Lexer. Now it handles all
  Unicode spaces.  Jsut need to obsolete the old version.
2014-04-23 17:34:07 -04:00
Paul Beckingham
45453de477 TW-1309
- TW-1309 memory error, if misconfigured calendar.details.report (thanks to
          Onion).
2014-04-23 08:02:43 -04:00
Paul Beckingham
a2410bdba9 Testing
- Removed unsupported command line constructs.
2014-04-23 00:24:47 -04:00
Paul Beckingham
9d33691cab TW-253
- Added details in debug mode, for unrecognized data (thanks to Kosta H).
  Note: does not close TW-253.
2014-04-22 22:21:40 -04:00
Paul Beckingham
3786e58b88 Args
- Added a more complete set of entities.
2014-04-21 16:25:47 -04:00
Paul Beckingham
45bd916a1a Args
- Added call to A3t::getFilterExpression, for testing.
2014-04-21 16:25:09 -04:00
Paul Beckingham
997bdbdb90 A3t
- Implemented first pass as getFilterExpression.
2014-04-21 16:24:19 -04:00
Paul Beckingham
b690a8d2a3 A3t
- Renamed methods for consistency.
2014-04-21 16:23:17 -04:00
Paul Beckingham
26fb3c1686 Merge branch '2.4.0' of ssh://git.tasktools.org/tm/task into 2.4.0 2014-04-21 16:17:48 -04:00
Paul Beckingham
57b876f005 Tree
- Parse tree is now colored to match the old one, somewhat.
2014-04-21 16:17:31 -04:00
Paul Beckingham
e82cffe8ac Cleanup
- Updated comments, docs.
2014-04-21 16:04:18 -04:00
Paul Beckingham
3e5dc56773 A3t
- ::findFilter and ::findModications now remove the '?' tag.
2014-04-20 10:42:44 -04:00
Paul Beckingham
0771ee2399 A3t
- Cleaned up ::validate, added notes for further validation.
- Removed obsolete comments.
2014-04-20 10:27:47 -04:00
Paul Beckingham
e05610d1d7 A3t
- Implemented ::findModifications to identify nodes that comprise the
  task modifications.
2014-04-20 10:12:24 -04:00
Paul Beckingham
2390838894 A3t
- Implemented ::findFilter to identify nodes that comprise a filter.
2014-04-20 10:09:30 -04:00
Paul Beckingham
3d2dd05332 A3t
- Default and assumed commands are tagged accordingly.
2014-04-20 09:30:55 -04:00
Paul Beckingham
ca887131a4 CmdCustom
- Custom report filters are now tagged acordingly in the parse tree.
2014-04-20 09:30:06 -04:00
Paul Beckingham
3cb10a4850 Command
- Added a debug mode parse tree dump in Command::filter, which is the
  first opportunity to see the complete tree.  There will be other places
  where this occurs too.
2014-04-20 09:28:35 -04:00
Paul Beckingham
6f948826a7 A3t
- Combined ::findFileOverride and ::findConfigOverride into ::findOverride.
- Made ::findBinary public, and corrected comment.
2014-04-20 09:26:01 -04:00
Paul Beckingham
13c0efb178 Add-on
- Updated the import-todo.sh with the latest examples from todotxt.org, and
  tested that the import is still good.
2014-04-20 08:16:24 -04:00
Paul Beckingham
e8e25bb7c6 A3t
- The ::capture_first method now returns a pointer to the new branch.
2014-04-19 11:57:46 -04:00
Paul Beckingham
24d7411aa8 I18N
- Updated all L10N language/country references to use ISO 639-3 (language)
  and ISO 3166-1 alpha 3 (country) codes.
- Note that holiday files are not updated.
2014-04-19 09:26:22 -04:00
Paul Beckingham
ab6150c298 A3t
- Removed diagnostics.
2014-04-19 08:43:52 -04:00
Paul Beckingham
3c701c8d5b A3t
- Removed obsolete ::findAliases method.
2014-04-19 08:28:02 -04:00
Paul Beckingham
a353cbaf91 Alias
- Integrated new Alias object into new command line processing.
2014-04-19 08:22:27 -04:00
Paul Beckingham
93e28c1707 Alias
- Broke out alias handling into a separate object.
2014-04-19 08:20:03 -04:00
Paul Beckingham
c65670278c A3t
- Added tree accessor.
2014-04-19 08:19:12 -04:00
Paul Beckingham
1a731500e6 Args
- Updated 'run' script to exercise the old 2.0 command line examples, as well
  as the new 2.4.0 examples.
2014-04-18 00:07:36 -04:00
Paul Beckingham
aa9e3da77b Args
- Updated args.cpp to be at parity with Context::initialize.
2014-04-17 23:52:09 -04:00
Paul Beckingham
f439cd4813 A3t
- Renamed resolve_aliases to findAliases, for a better fit.
- Partially implemented findAliases.
2014-04-17 22:01:55 -04:00
Paul Beckingham
6ad9ef78ba TW-1307
- TW-1307 burndown is aliased to burndown.weekly (thanks to darkfeline).
2014-04-17 06:50:35 -04:00
Paul Beckingham
3afaa2fd0b A3t
- Implemented A3t::capture_first, for command injection.
2014-04-16 17:03:38 -04:00
Paul Beckingham
16fc71e2ef Code Cleanup
- Readability.
2014-04-16 16:56:45 -04:00
Paul Beckingham
43be3edb31 A3t
- Testing structㄩre of A3t::inject_defaults.
2014-04-16 16:01:42 -04:00
Paul Beckingham
b5649fca8c A3t
- Relocated calls to findCommand, findUUIDList, findIdSequence from
  A3t::parse to Context::initialize.
2014-04-16 15:59:56 -04:00
Paul Beckingham
9b0e4d6eb1 Args
- Added specific calls to locate the command, rc: an rc. overrides.
2014-04-16 15:57:12 -04:00
Paul Beckingham
ca8d22ab54 A3t
- Added stubbed A3t::inject_defaults and A¾t::resolve_aliases methods.
2014-04-16 00:51:49 -04:00
Paul Beckingham
de5204adb9 A3t
- Added operator entities.
2014-04-16 00:48:27 -04:00
Paul Beckingham
bf30fb3085 Eval
- Added Eval::getOperators to expose suported operator symbols.
2014-04-16 00:38:43 -04:00
Paul Beckingham
fff1ae2d6e A3t
- Fixed segfault caused by combined map lookup and method call.
2014-04-16 00:12:18 -04:00
Paul Beckingham
8d10d81198 Columns
- Removed ColUDA::is_uda override, because it was wrong.  Now in the base class
  a member variable is referenced.
2014-04-16 00:06:29 -04:00
Paul Beckingham
2aa224d278 TW-1298
- TW-1298 The color 'orange' is not recognized. - taskwarrior will not start
          anymore (thanks to Bernd Humpa).
2014-04-15 23:37:05 -04:00