Commit graph

3857 commits

Author SHA1 Message Date
Paul Beckingham
83ab844ba4 CLI
- ::unsweetenPatterns no longer clobbers non-FILTER args.
2014-10-19 18:19:27 -04:00
Paul Beckingham
f809f2d819 CLI
- ::unsweetenAttributeModifiers no longer clobbers non-FILTER args.
2014-10-19 18:19:09 -04:00
Paul Beckingham
720cc57192 CLI
- ::unsweetenAttributes no longer clobbers non-FILTER args.
2014-10-19 18:18:48 -04:00
Paul Beckingham
f862ad15e6 CLI
- ::unsweetenTags no longer clobbers non-FILTER args.
2014-10-19 18:18:03 -04:00
Paul Beckingham
cd8f7ddac4 CLI
- Can now safely re-analyze command line if something changes. This required a
  ::analzye method to be called late in Context::initialize.
2014-10-19 17:59:51 -04:00
Paul Beckingham
87538589a6 Context
- Setting rc.debug.hooks or rc.debug.parser to non-zero values also sets
  rc.debug=true, otherwise the output is not visible.
2014-10-19 17:34:35 -04:00
Paul Beckingham
d9222606e7 Hooks
- The on-exit hook can now terminate processing.
2014-10-19 01:47:33 -04:00
Paul Beckingham
7895ea0f42 Hooks
- Added safety measure in case of a hook misfire.
- Made debug output consistent.
2014-10-19 01:32:41 -04:00
Paul Beckingham
23e2719e1a TDB2
- Restored blank line for clarity, now that duplicate debug messages are allowed.
2014-10-19 01:31:03 -04:00
Paul Beckingham
d873a15aa7 Context
- Removed the restriction that debug messages must be unique. Because it's
  insane.
2014-10-19 01:30:24 -04:00
Paul Beckingham
7e2582f2b8 Hooks
- Fixed bug where the identifier "on-modify" contained some bogus UTF8.
- Ensured that every input line has a \n.
2014-10-19 00:57:30 -04:00
Paul Beckingham
719e9d242b Hooks
- Bug due to missing reference & in calls to callHookScript.  Dumbass.
2014-10-18 23:59:40 -04:00
Paul Beckingham
f1639e6862 Hooks
- Revised all event functions to use the new callHookScript method, which is
  now common to all events.
2014-10-18 23:47:32 -04:00
Paul Beckingham
d1f6b36ecf Hooks
- Standardized formatting of hook input and output in debug.hooks mode.
2014-10-18 17:26:20 -04:00
Paul Beckingham
8d75d0c7f3 Hooks
- Reduced validation to simply checking that a description attribute is present.
  This is the bare minimum for the Task(const std::string&) contructor.
2014-10-18 17:23:39 -04:00
Paul Beckingham
21bbedbfc5 Hooks
- Now performs a full JSON parse on hook script output before accepting it as a
  task.
2014-10-18 16:59:46 -04:00
Paul Beckingham
b6be1cdc99 Hooks
- Factored out the code that determines if the JSON output from a hook script is
  actually JSON.
2014-10-18 16:55:26 -04:00
Paul Beckingham
5275c0ce60 TW-1441
- TW-1441 task import continues happily if filename doesn't exist.
2014-10-18 14:41:12 -04:00
Paul Beckingham
171fabbcda CLI
- Corrected comment to include quotes that are necessary for patterns.
2014-10-17 16:32:11 -04:00
Paul Beckingham
51f08496b5 Lexer
- When parsing '\o/' the state Lexer::typeIdentifierEscape had no exit but a
  successful outcome, and looped.
- Fixed test.
2014-10-16 21:22:34 -04:00
Paul Beckingham
8d359ddd70 CLI
- Implemented ::unsweetenPatterns.
2014-10-16 00:53:59 -04:00
Paul Beckingham
932865d3b5 CLI
- Renamed unsweetenAtts to unsweetenAttributes, unsweetenAttMods to
  unsweetenAttributeModifiers.
2014-10-16 00:39:56 -04:00
Paul Beckingham
0603711aac CLI
- Implemnted ::unsweetenAttMods.
2014-10-16 00:37:48 -04:00
Paul Beckingham
80b385ee93 CLI
- Renamed 'canonical' to 'name', for legacy reasons.
2014-10-16 00:36:52 -04:00
Paul Beckingham
9f8c4e02a7 CLI
- Implemented ::getFilter to extract all the non-PSEUDO, FILTER items.
2014-10-15 07:42:29 -04:00
Paul Beckingham
8afb39dea6 CLI
- Implemented ::unsweetenAtts to resolve syntactic sugar to an expression.
2014-10-15 07:34:29 -04:00
Paul Beckingham
f29b6a4be4 CLI
- Convert ::unsweetenTags from _filter to _args.
2014-10-15 02:34:44 -04:00
Paul Beckingham
ae4272f477 CLI
- When unsweetening tags, preserve the FILTER tag.
2014-10-15 02:33:50 -04:00
Paul Beckingham
8dd9082697 CLI
- Categorize has a better definition of FILTER.
2014-10-15 02:32:32 -04:00
Paul Beckingham
83898359e3 CLI
- Combined all elements into the single _args list.
2014-10-15 02:24:35 -04:00
Paul Beckingham
dd8391351d CLI
- Merged _program into _args.
- Merged _overrides into _args.
- Rewrote :extractOverrides as ::findOverrides.
2014-10-15 02:08:48 -04:00
Paul Beckingham
c3f7524006 CLI
- Now only dumps the parse tree on ::getFilter.
2014-10-15 01:47:36 -04:00
Paul Beckingham
295feda3b4 Parser
- Corrected findTags comment.
2014-10-15 01:44:21 -04:00
Paul Beckingham
698c801dbc CLI
- Converted _command from std::string to A.
2014-10-15 01:43:27 -04:00
Paul Beckingham
e5780474da CLI
- Converted _program from std::string to A.
2014-10-15 01:34:36 -04:00
Paul Beckingham
b3b509eabe CLI
- Added default constructor, so it plays nice with others.
- Added ::clear method to reset all members.
2014-10-15 01:33:12 -04:00
Paul Beckingham
6388d3827b CLI
- Converted from std::string to A.
2014-10-15 01:24:02 -04:00
Paul Beckingham
854dc08615 CLI
- Upgraded _args vector from std::string to A.
2014-10-15 01:08:44 -04:00
Paul Beckingham
87ece489db CLI
- Implemented A::dump.
2014-10-15 00:35:46 -04:00
Paul Beckingham
b98da56a7c CLI
- Implemented A class, to represent a single argument. Much like a tree node.
2014-10-15 00:28:16 -04:00
Paul Beckingham
8b78251735 CLI
- Filter elements are now rendered on one line in ::dump.
2014-10-15 00:27:43 -04:00
Paul Beckingham
c2f8c81a88 CLI
- Implemented ::unsweetenTags, which resolves the syntactic sugar to an expression.
2014-10-15 00:02:45 -04:00
Paul Beckingham
34fd7b4b04 CLI
- Relocated public methods to top.
- Removed const for methods, which are no longer const.
2014-10-14 23:49:13 -04:00
Paul Beckingham
f353e1f3d5 CLI
- Removed reset of _program on ::add, which never gets restored.
2014-10-14 23:40:13 -04:00
Paul Beckingham
d6e11761a6 CLI
- Added diagnostics only to ::initialize and ::add.
- Now properly clears and regenerates all data on change.
2014-10-14 23:26:12 -04:00
Paul Beckingham
7812bce079 CLI
- Reorganized methods to match header sequence.
2014-10-14 23:25:26 -04:00
Paul Beckingham
6d64472826 Context
- Removed calls to now-private methods.
2014-10-14 23:23:09 -04:00
Paul Beckingham
51a98609d9 CLI
- Stubbed ::getWords and ::getModifications.
2014-10-14 23:22:25 -04:00
Wilhelm Schuermann
ae9705561c Hooks
- Throw exception instead of segfaulting for on-add hooks not adhering to the specs. More work needed.
2014-10-14 15:58:24 -04:00
Paul Beckingham
54d975dac3 CLI
- Colㄡrized the ::dump output.
2014-10-14 01:52:39 -04:00