Commit graph

209 commits

Author SHA1 Message Date
Paul Beckingham
3dc7baa4ed CLI: Removed unused and eclipsed argument to ::addArg. 2015-06-07 10:02:00 -04:00
Paul Beckingham
7f763aacb9 CLI: Cleaned up and documented context filter code. 2015-06-07 09:52:58 -04:00
Paul Beckingham
207048514d CLI: Removed overly complex handling of terminator in ::findOverrides. 2015-06-06 11:08:19 -04:00
Paul Beckingham
1281dfbf22 CLI: Removed redundant terminator scanning in ::initialize. 2015-06-06 11:02:42 -04:00
Paul Beckingham
61470d7820 CLI: Cleaned up overly complex use of 'terminated'. 2015-06-06 10:51:32 -04:00
Paul Beckingham
e8d04bdce6 C++11: N1984 auto 2015-05-24 13:36:26 -04:00
Paul Beckingham
e74c6963a9 C++11: Cleaned up program framework with range-based for 2015-05-11 17:50:53 -04:00
Paul Beckingham
935b2993f3 C++11: Took advantage of N1757. 2015-04-06 15:30:39 -04:00
Wilhelm Schuermann
70d5f595c7 TW-1584: attr.{isnt,not} use partial matching
- Change attr.{isnt,not} to be the exact opposite of attr{:is,:},
  i.e. exact matching.
- Fix tests that assumed the old behavior was intended.
2015-04-02 13:38:04 +02:00
Paul Beckingham
690d9493f0 Build: Resolve some more compiler warnings 2015-03-29 18:03:36 -04:00
Wilhelm Schuermann
7a64c19641 Resolve most compiler warnings 2015-03-29 22:05:38 +02:00
Paul Beckingham
24a1cbefe9 Merge branch '2.4.3' into lexer2 2015-03-20 17:16:48 -04:00
Paul Beckingham
289780c8cc Lexer: Added comments 2015-03-20 17:16:00 -04:00
Tomas Babej
1465bcb918 Context: Do not apply context for the export command 2015-03-14 17:28:20 -04:00
Paul Beckingham
7826c7b988 CLI
- Added Lexer::Type arg to ::addArg, for future capture of type.
- Cleaned up code formatting from patch.
2015-03-07 17:29:08 -05:00
Paul Beckingham
8c6892fed6 Merge branch '2.4.2' into lexer2 2015-02-24 17:03:11 -05:00
Tomas Babej
1a0f479394 CmdContext: Add helpful hint to output when setting context 2015-02-24 16:51:05 -05:00
Paul Beckingham
0548fca88f Merge branch '2.4.2' into lexer2 2015-02-23 20:22:34 -05:00
Tomas Babej
dc0502dd9f CLI: Apply context filter directly in getFilter method 2015-02-23 19:19:51 -05:00
Tomas Babej
3a77a5f291 CLI: Add addContextFilter method 2015-02-23 19:19:47 -05:00
Tomas Babej
1abda3900b CLI: Abstract adding new raw filter to a new helper method 2015-02-23 19:19:44 -05:00
Paul Beckingham
26aff348d2 Lexer
- Replaced old digitsOnly() function with Lexer::isAllDigits.
2015-02-22 20:23:00 -05:00
Paul Beckingham
9f82926c65 Text
- Removed obsolete noSpaces() function.
2015-02-22 18:27:19 -05:00
Paul Beckingham
745aad0d27 Lexer
- Renamed Lexer2 to Lexer, it looks good enough to assume control.
2015-02-22 18:23:03 -05:00
Paul Beckingham
0cf18f3b16 Lexer2
- Integrated Lexer2 in place of Lexer. Tests fail.
2015-02-22 13:52:14 -05:00
Paul Beckingham
aab93b2cda Lexer2
- Migrated ::dequote method from Lexer.
2015-02-19 21:43:22 -08:00
Paul Beckingham
b7ad091d00 Updated copyright to 2015 2015-01-01 00:00:41 -05:00
Paul Beckingham
d01d2109cf TW-1471
- TW-1471 task calc uses output it doesn't understand (thanks to Jens Erat).
2014-12-14 18:34:12 -05:00
Paul Beckingham
206323dd6a TW-1468
- TW-1468 Filtering for project and description has issues (thanks to Richard
          Boß).
2014-11-28 12:24:51 -05:00
Paul Beckingham
d5c937ba8c Filter
- Diagnostics for filter eval were not enabled properly. Now rc.debug.parser=2
  will show all filter eval diagnostics.
2014-11-22 13:48:28 -05:00
Paul Beckingham
06319711f1 Quoting
- Removed automatic dequoting by the Lexer.
- Implemented Lexer::dequote for manual control.
- Variant dequotes string values when appropriate.
- Fixed some unit tests that became wrong.
2014-11-18 00:59:52 -05:00
Paul Beckingham
f28ccdc8b1 CLI/CmdCalendar
- When the binary is named (or symlinked to) 'cal', then CLI::_args[0]
  must be clobbered, and restored for subsequent commands.
2014-11-17 19:13:19 -05:00
Paul Beckingham
66c303daef CLI
- Removed inverted range error, and instead the parser just downgrades from an
  ID range to unknown.
2014-11-10 23:55:38 -05:00
Paul Beckingham
55d7442abc CLI
- Restored message about nested alias safety valve.
2014-11-10 22:19:15 -05:00
Paul Beckingham
97428397a5 CLI/Context
- Removed repeated header calls that display a reconstructed command line in
  the event that default.command is used.
2014-11-10 22:07:02 -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
d38e606a50 TW-1434
- TW-1434 Parser issue in description.contains (thanks to Ralph Bean).
2014-11-09 18:44:12 -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
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
84f9bc52ef CLI
- Implemented ::disqualifyOnlyParenOps, which bypasses lexing if parentheses
  are the only operators found.
2014-11-09 14:58:51 -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
a07aa2bece CLI
- Only the first arg was being marked as ORIGINAL.
2014-11-09 12:27:01 -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
ab17450820 CLI
- Code cleanup, removed ::getModifications.
2014-11-08 15:21:07 -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