Commit graph

4178 commits

Author SHA1 Message Date
Paul Beckingham
2e0b7c8052 CmdCustom
- After injecting custom filter, re-parse.
2014-04-26 13:26:54 -07:00
Paul Beckingham
d70df55c2d CmdBurndown
- Converted from A3 to A3t.
2014-04-26 12:03:28 -07:00
Paul Beckingham
1f8763829d CmdUndo
- Converted from A3 to A3t.
2014-04-26 11:58:35 -07:00
Paul Beckingham
f89f5469a4 Shell
- Converted from A3 to A3t.  Still doesn't work though.
2014-04-26 11:53:05 -07:00
Paul Beckingham
22c5bc28e1 CmdCalendar
- Converted from A3 to A3t.
2014-04-25 22:32:49 -07:00
Paul Beckingham
b5bd3e44c8 A3t
- Added ::clear method.
- Handles ::captureFirst with an empty tree.
2014-04-25 22:31:52 -07:00
Paul Beckingham
74cfc972fc Code Cleanup
- Converted use of isspace (which doesn't know Unicode) to Lexer::is_ws.
2014-04-24 17:06:05 -04:00
Paul Beckingham
763ded488c CmdExec
- Converted from A3 to A3t.
- Standardized on A3t::getWords, and unquoted args to run. This ought to
  fix a bug, but I'm on a plane and cannot look at the bug right now.
2014-04-24 13:21:22 -04:00
Paul Beckingham
c5fd2700ef A3t
- Modified ::findCommand to scan for already-found commands, so as not
  to find a second, if the method is called again.
- Fixed a bug where all likely commands were tagged, not just the first.
2014-04-24 13:05:39 -04:00
Paul Beckingham
6cd6910968 Unit Test
- Modified rc.t to use the lightweight _version command, instead of invoking
  all the default command machinery, for a simple rc creation.
2014-04-24 13:04:28 -04:00
Paul Beckingham
3e7c323086 A3
- Removed obsolete A3::extract_words method.
2014-04-24 12:33:09 -04:00
Paul Beckingham
42c078d0b7 CmdTimesheet
- Converted from A3 to A3t.
2014-04-24 12:30:56 -04:00
Paul Beckingham
91485d444e CmdSync
- Converted from A3 to A3t.
2014-04-24 12:30:08 -04:00
Paul Beckingham
51a735cfba CmdImport
- Converted from A3 to A3t.
2014-04-24 12:29:28 -04:00
Paul Beckingham
bd69f8ad6c CmdGet
- Converted from A3 to A3t.
2014-04-24 12:28:37 -04:00
Paul Beckingham
fd0eb4a683 CmdConfig
- Converted from A3 to A3t.
2014-04-24 12:27:03 -04:00
Paul Beckingham
7da9b6b2ed CmdColumns
- Converted from A3 to A3t.
2014-04-24 12:25:45 -04:00
Paul Beckingham
e0254b1b71 CmdCalendar
- Converted from A3::extract_words to A3t::getWords.
2014-04-24 12:24:28 -04:00
Paul Beckingham
7fdd014c2f CmdColor
- Converted from A3 to A3t.
2014-04-24 12:22:46 -04:00
Paul Beckingham
464626bcb4 CmdCalc
- Converted from A3 to A3t.
2014-04-24 12:21:27 -04:00
Paul Beckingham
9a9e07c3fc CmdShow
- Converted from A3 to A3t.
2014-04-24 12:20:20 -04:00
Paul Beckingham
1d298c9068 A3t
- Implemented A3t::getWords, to replace A3::extract_words.
2014-04-24 12:17:28 -04:00
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