Commit graph

148 commits

Author SHA1 Message Date
Paul Beckingham
a503a02663 Parser
- Rewrote ::insertOr to only operate at the ORIGINAL node level, which is
  appropriate for this operation.
2014-08-30 15:36:08 -04:00
Paul Beckingham
f87ead8804 Parser
- Fixed bug where ::findAttribute and ::findAttributeModifier were scanning
  all nodes, but thinking that '--' was a tag, not a raw value.
2014-08-26 23:26:49 -04:00
Paul Beckingham
3f519785d8 Parser
- Added static method to scan argv[] for overrides without a parse tree, so
  that any rc:<file> arguments can be used to locate the rc file, load it, and
  proceed with command line parsing which relies on things like rc.dateformat.
2014-08-26 23:25:08 -04:00
Paul Beckingham
7e460f10d1 Parser
- Removed parser upgrade diagnostics, as tw is now stable.
2014-08-24 16:46:39 -04:00
Paul Beckingham
59ffcd858e Parser
- ::findAttribute was not considering all nodes, and failed to remove the "?" tag.
2014-08-24 16:37:17 -04:00
Paul Beckingham
8b904a57f4 Parser
- ::findPattern was performing the wrong scan, and needed branch pruning outside
  the iterator loop.
2014-08-24 16:09:30 -04:00
Paul Beckingham
961b4ade9b Parser
- ::findPattern now scans all nodes.
2014-08-24 15:25:10 -04:00
Paul Beckingham
dac6a9ced5 Parser
- ::resolveAliases needs to scan all nodes.
2014-08-24 15:22:10 -04:00
Paul Beckingham
c446786d46 Parser
- ::getDataLocation needs to scan all nodes.  You'd think I'd learn this by now.
2014-08-24 15:17:14 -04:00
Paul Beckingham
bf533df39c Parser
- Commented out all diagnostics, as we converge on stable.
2014-08-24 14:06:50 -04:00
Paul Beckingham
06210056f8 Parser
- Corrected comments for accuracy.
2014-08-24 13:54:00 -04:00
Paul Beckingham
a2763a275c Parser
- Code cleanup for ::findCommand.
2014-08-24 13:25:12 -04:00
Paul Beckingham
ce914a31f9 Parser
- Code cleanup of ::findTerminator.
2014-08-24 13:23:19 -04:00
Paul Beckingham
0a4dcc1a21 Parser
- Code cleanup of ::findBinary.
2014-08-24 13:21:51 -04:00
Paul Beckingham
f898953a2e Parser
- ::findIdSequence now safely removes nodes out of the iterator loop.
2014-08-24 13:14:52 -04:00
Paul Beckingham
df80050c13 Parser
- ::findUUIDList now safely removes nodes out of the iterator loop.
2014-08-24 12:53:50 -04:00
Paul Beckingham
c46f8a4626 Parser
- ::findTerminator needs to scan all nodes.
2014-08-24 12:15:15 -04:00
Paul Beckingham
e353d8eb8b Parser
- ::findModifications code cleanup.
- ::findStrayModifications now prunes nodes out of the iterator loop.
2014-08-23 17:34:16 -04:00
Paul Beckingham
13e49f6b00 Parser
- ::findAttributeModifier now repeats without breaking the iterator.
2014-08-23 17:27:10 -04:00
Paul Beckingham
37614ac6b3 Parser
- ::findAttribute now repeats without breaking the iterator.
2014-08-23 17:26:28 -04:00
Paul Beckingham
110fedb18f Parser
- Removed diagnostics from override handling.
2014-08-23 17:09:50 -04:00
Paul Beckingham
711ababc76 Parser
- ::getLimit now scans all nodes.
2014-08-23 16:01:58 -04:00
Paul Beckingham
bc17bf7cbe Parser
- ::findCommand needs to scan all nodes, to find an existing CMD.
2014-08-23 14:59:57 -04:00
Paul Beckingham
312ffe7463 Parser
- Clarified an important comment.
2014-08-23 13:32:26 -04:00
Paul Beckingham
5b5adc4240 Parser
- ::findBinary no longer requires diagnostics.
2014-08-23 13:31:48 -04:00
Paul Beckingham
af77e2e150 Parser
- Modified ::findTag to perform one action and repeat, rather than attempt
  everything at once, with an invalid iterator.
2014-08-23 13:08:52 -04:00
Paul Beckingham
4a07f4e546 Parser
- ::findModifications moves branch pruning out of the iterated loop.
2014-08-22 23:52:24 -04:00
Paul Beckingham
d6ad010085 Parser
- ::findOperator moves brnach pruning outside the iterated loop.
2014-08-22 23:50:54 -04:00
Paul Beckingham
e26f0f0dc9 Parser
- ::findSubstitution moves branch prining out of the iterated loop.
2014-08-22 23:49:06 -04:00
Paul Beckingham
6753176d89 Parser
- ::findPattern moves branch pruning out of the iterated loop.
2014-08-22 23:47:54 -04:00
Paul Beckingham
1b39a03e96 Parser
- ::applyOverrides looks at all nodes.
2014-08-22 23:47:07 -04:00
Paul Beckingham
dbc55b5f73 Parser
- ::findOverrides moves branch pruning out of the iterated loop.
- Now scans all nodes.
2014-08-22 23:45:33 -04:00
Paul Beckingham
3fce252461 Parser
- ::findCommand moves branch pruning out of the iterated loop.
2014-08-22 23:44:18 -04:00
Paul Beckingham
6dad8ddb1b Parser
- ::findTerminator now moves branch pruning out of the iterated loop.
2014-08-22 23:42:58 -04:00
Paul Beckingham
9f9c07a955 Parser
- In ::findBinary, it is not necessary to prune branches.
2014-08-22 23:41:57 -04:00
Paul Beckingham
62725c97e4 Merge branch '2.4.0' of ssh://git.tasktools.org/tm/task into 2.4.0 2014-08-22 22:38:16 -04:00
Paul Beckingham
d4adf13b69 Parser
- Made use of the other ::collect variants.
2014-08-22 22:37:53 -04:00
Paul Beckingham
3aef4f74b9 Parser
- Rewrote ::collect to be simpler.
2014-08-22 22:36:10 -04:00
Paul Beckingham
079669e73b Parser
- Modified ::getWords to look at all nodes, including parents.
2014-08-22 16:07:31 -04:00
Paul Beckingham
c371af75b2 Parser
- Fixed ::findStrayModifications to identify the right node to upgrade.
2014-08-18 23:55:48 -04:00
Paul Beckingham
e9f71b152c Parser
- Migrated from Boolean to tristate ::collect method.
2014-08-18 23:18:41 -04:00
Paul Beckingham
4447200357 Parser
- Upgraded the 'bool all' argument to ::collect to a tri-state enum, in a
  polymorphic method.
2014-08-18 23:10:14 -04:00
Paul Beckingham
118f930fad Parser
- Improved, but did not fix, ::insertOr, regarding insertion of nodes into
  _tree and not nodes.  There is still a problem.
2014-08-17 23:39:59 -04:00
Paul Beckingham
6635cd9d84 Parser
- Corrected indirect node insertion, which must be into _tree, not into
  nodes.
2014-08-17 23:39:06 -04:00
Paul Beckingham
293f4d6258 Parser
- ::initialize now recognizes more things it should not lex.
2014-08-17 17:10:13 -04:00
Paul Beckingham
f9aa34cb67 Parser
- When ::findPlainArgs promotes a WORD to a PATTERN, it needs to move the FILTER
  tag down to the child nodes.
2014-08-17 16:04:50 -04:00
Paul Beckingham
37bf45b696 Parser
- ::insertOr and ::insertAnd must use nodes, not _tree->_branches.
2014-08-17 15:53:49 -04:00
Paul Beckingham
a1ba3df7fb Parser
- ::getLimit does not need to manually skip TERMINATOR nodes.
2014-08-17 15:53:16 -04:00
Paul Beckingham
ea7afa112b Parser
- ::applyOverrides scans all nodes, and must manually skip TERMINATOR.
2014-08-17 15:52:42 -04:00
Paul Beckingham
e2b6e9b65e Parser
- ::getOverrides scans all nodes, and must manually skip TERMINATOR.
2014-08-17 15:51:58 -04:00