Commit graph

5793 commits

Author SHA1 Message Date
Renato Alves
1a4774a2d8 Revert "Unittest - TOTAL tests shouldn't include non-executable tests"
TESTBLOB can have multiple arguments. Doesn't work with find.

This reverts commit 3dfbed6e4c.
2014-11-10 11:56:16 +00:00
Renato Alves
3dfbed6e4c Unittest - TOTAL tests shouldn't include non-executable tests 2014-11-10 11:40:48 +00:00
Renato Alves
94cd3df675 Unittest - Also check for execute bit if not running in verbose mode 2014-11-10 11:40:18 +00:00
Paul Beckingham
ec18c1b9d7 CMake
- Removed unnecessary libreadline scanning.
2014-11-09 22:28:30 -05:00
Paul Beckingham
e9bdb6704f CLI
- Quoted some of the literals from desugaring attribute modifiers.
2014-11-09 21:44:31 -05:00
Paul Beckingham
3e67d68f57 TW-295
- TW-295 Replacing annotations or descriptions which contain '/'s (thanks to
         Johannes Schlatow).
2014-11-09 20:07:27 -05:00
Paul Beckingham
d38e606a50 TW-1434
- TW-1434 Parser issue in description.contains (thanks to Ralph Bean).
2014-11-09 18:44:12 -05:00
Paul Beckingham
4bbb6fea99 Unit Tests
- Added a terminator to the task that needs it.
2014-11-09 17:35:50 -05:00
Paul Beckingham
19eaae88cd Unit Tests
- Removed a test from tw-1418.t that doesn't need an escape.
2014-11-09 17:18:43 -05:00
Paul Beckingham
879b1edb5c Unit Tests
- Escapes / characes in search patterns, so that 'foo/' --> 'foo\/', which
  then allows '/foo\//'. In Python, this needs one more: '/foo\\//'.
2014-11-09 17:11:21 -05:00
Paul Beckingham
3279566244 CLI
- Modify ::disqualifyOnlyParenOps to count sugared operators.
- Labelled '(' and ')' as circumflex operators, thanks awwaiid.
2014-11-09 16:52:43 -05:00
Paul Beckingham
61e943f456 CLI
- Implemented ::disqualifySugarFree to prevent lexing arguments that ultimately
  resolve to zero operators.
2014-11-09 16:32:38 -05:00
Paul Beckingham
125b5464dc Eval
- Do not mark the '(' and ')' operators as binary. I don't know what they are,
  but they are not binary.
2014-11-09 16:12:47 -05:00
Paul Beckingham
d8d517706b CLI
- Implemented ::disqualifyFirstLastBinary to detect arguments that start or end
  with a binary operator, and are therefore not expressions.
2014-11-09 15:20:42 -05:00
Paul Beckingham
33bc4f13d0 Context
- Creates a set of entities for binary operators.
2014-11-09 15:19:57 -05:00
Paul Beckingham
d7378d830f Eval
- Implemented ::getBinaryOperators.
2014-11-09 15:18:04 -05:00
Paul Beckingham
84f9bc52ef CLI
- Implemented ::disqualifyOnlyParenOps, which bypasses lexing if parentheses
  are the only operators found.
2014-11-09 14:58:51 -05:00
Paul Beckingham
dc97348335 Revert "Unit Tests"
This reverts commit a00c5b11c8.
2014-11-09 14:53:43 -05:00
Paul Beckingham
237ef48b9c CLI
- Implemented the first two Lex disqualifiers.
2014-11-09 14:32:52 -05:00
Paul Beckingham
6e906e4dbf CLI
- Made argument termination (--) persists across ::addArg calls.
2014-11-09 13:59:40 -05:00
Paul Beckingham
a00c5b11c8 Unit Tests
- Modified tests to include a terminator, to resolve ambiguity.
2014-11-09 13:57:35 -05:00
Paul Beckingham
a07aa2bece CLI
- Only the first arg was being marked as ORIGINAL.
2014-11-09 12:27:01 -05:00
Paul Beckingham
008c7503b3 Unit Tests
- Corrected test count markers.
2014-11-09 12:24:30 -05:00
Paul Beckingham
1dfefc0be8 CmdDenotate
- Code cleanup.
2014-11-09 12:23:56 -05:00
Paul Beckingham
83894ae559 Unit Tests
- Migrated to new template.
2014-11-09 12:11:56 -05:00
Paul Beckingham
273ede6d0f CmdCalendar
- Added argv[0].
2014-11-09 12:04:06 -05:00
Paul Beckingham
b801358599 CLI
- Code cleanup of argument handling loops, ::categorize.
2014-11-09 12:01:10 -05:00
Paul Beckingham
8f60a106f7 CLI
- ::findOperator now only reports changes if the tag being added was not
  already there.
2014-11-09 11:15:20 -05:00
Paul Beckingham
9d0ae4f09d CLI
- Renamed the ::desugar* methods to be more specific.
2014-11-09 11:14:34 -05:00
Paul Beckingham
3b1f244f42 CLI/Context
- Reordering init sequence.
- Removed ::assumeLocations.
2014-11-09 10:38:40 -05:00
Paul Beckingham
8ff32b767f TW-1444
- TW-1444 Tag ordering is preserved, but should be sorted in reports.
2014-11-08 16:52:19 -05:00
Paul Beckingham
da8e16a38b TW-1437
- TW-1437 taskd.trust has a bad default value.
2014-11-08 15:23:55 -05:00
Paul Beckingham
ab17450820 CLI
- Code cleanup, removed ::getModifications.
2014-11-08 15:21:07 -05:00
Paul Beckingham
1ff19c3b8f TW-1414.t
- default.command doesn't work with execute anymore (thanks to Johannes
  Schlatow).
2014-11-08 15:15:50 -05:00
Paul Beckingham
c818a2fa3a Unit Tests
- Removed whitespace for readability.
2014-11-08 15:05:54 -05:00
Paul Beckingham
c2bf56af71 CLI
- Removed the requirement in ::getWords that the ORIGINAL tag be present.
2014-11-08 15:05:19 -05:00
Paul Beckingham
db13a676bb Unit Tests
- Enabled failing tests.  Maybe it can be fixed instead.
2014-11-08 14:48:27 -05:00
Paul Beckingham
283cae5e8c CLI
- The ::categorize method now only allows one TERMINATOR - the first one.
2014-11-08 14:35:24 -05:00
Paul Beckingham
26f8d8c45d CLI
- Implemented ::findStrayModifications to spot FILTER args detected before 'add'
  or 'log' commands, and upgrade them to MODIFICATIONs.
2014-11-08 14:22:25 -05:00
Paul Beckingham
b9b998c769 CLI
- Added a strict analysis mode that throws errors. In non-strict mode no errors
  are thrown because parsing is incomplete most of the time, and only the final
  pass needs to be strict.
2014-11-08 14:00:39 -05:00
Paul Beckingham
11d210a7c7 CLI
- Hooked up the parser to rc.abbreviation.minimum.
2014-11-08 13:41:19 -05:00
Paul Beckingham
2797541b8d CLI
- Raised the lexeme count threshold to 3 to consider lexing an argument. This
  accomodates binary operators.
2014-11-04 23:16:37 -05:00
Paul Beckingham
f790ee65c4 CLI
- The ::addArg method now trims incoming args.
2014-11-04 23:11:51 -05:00
Paul Beckingham
d9712322a7 CLI
- Stricter definition of what is an attribute.
2014-11-04 23:00:07 -05:00
Paul Beckingham
55962058de CLI
- Further restrictions on tag definition.
2014-11-04 22:53:41 -05:00
Paul Beckingham
39983e5f82 CLI
- Implemented ::isName.
2014-11-04 22:53:12 -05:00
Paul Beckingham
38359b779a Lexer
- Exposed more primitives as static methods.
2014-11-04 22:51:25 -05:00
Paul Beckingham
4ec1f17557 CLI
- More strict definition of what is a tag.
2014-11-04 22:34:18 -05:00
Paul Beckingham
2b3f7a2fb6 CLI
- Added explanatory comment for commented out code. Not sure what to do about
  it yet.
2014-11-04 22:17:33 -05:00
Paul Beckingham
645d728f0f CLI
- The ::insert method is not needed, and is removed.
2014-11-04 22:16:50 -05:00