Commit graph

4969 commits

Author SHA1 Message Date
Paul Beckingham
f59be41389 Unit Tests
- Updated to use new template.
2014-08-19 00:00:21 -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
a2a69e94fc Unit Tests
- Updated to use new template.
2014-08-18 23:45:08 -04:00
Paul Beckingham
e81a95c8f7 Unit Tests
- Updated to use new template.
2014-08-18 23:29:09 -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
cfc5c08777 Unit Tests
- Updated add.t to the new template.
2014-08-17 16:35:08 -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
Paul Beckingham
075eb4ca74 Parser
- ::findFilter must scan all nodes.
2014-08-17 15:51:28 -04:00
Paul Beckingham
6920b022b2 Parser
- ::findMissingOperators scans all nodes.
2014-08-17 14:38:19 -04:00
Paul Beckingham
1b60478bc7 Parser
- ::findPlainArgs scans all nodes.
2014-08-17 14:37:57 -04:00
Paul Beckingham
ddb5313747 Parser
- ::findStrayModifications scans all nodes.
2014-08-17 14:37:37 -04:00
Paul Beckingham
06b41218c5 Parser
- ::findModifications scans all nodes.
2014-08-17 14:37:17 -04:00
Paul Beckingham
d9e26c3a95 Parser
- ::applyOverrides scans all nodes.
2014-08-17 14:36:55 -04:00
Paul Beckingham
a4b43c2604 Parser
- ::getOverrides scans all nodes.
2014-08-17 14:36:25 -04:00
Paul Beckingham
3eb611057d Parser
- When locating a command, all nodes must be scanned, not just the unknown ones.
2014-08-17 14:30:19 -04:00
Paul Beckingham
bea4c6fd77 Parser
- On initialization, bypass lexing for argv[0] (program name) and any
  'rc:' and 'rc.' arguments.
2014-08-17 14:29:25 -04:00
Paul Beckingham
a3d2750f40 Parser
- Converted all remaining methods to use collect.  Now there is full recursion
  everywhere, which means the parse tree can be arbitrarily deep.
2014-08-17 13:41:17 -04:00
Paul Beckingham
dff7dae3bc Parser
- Modified ::findMissingOperators to use collect.
2014-08-17 13:31:49 -04:00
Paul Beckingham
f4807db6d9 Parser
- Modified ::findPlainArgs to use collect.
2014-08-17 13:27:46 -04:00
Paul Beckingham
1f0ce08042 Parser
- Modified ::findStrayModifications to use collect.
2014-08-17 13:24:31 -04:00
Paul Beckingham
d7ba49084b Parser
- Modified ::findModifications to use collect.
2014-08-17 13:22:25 -04:00
Paul Beckingham
4425f5e142 Parser
- Modified ::findFilter to use collect.
2014-08-17 13:20:56 -04:00
Paul Beckingham
eb00230840 Parser
- Modified ::findIdSequence to use collect.
2014-08-17 13:17:43 -04:00
Paul Beckingham
9111866f80 Parser
- Modified ::findUUIDList to use collect.
2014-08-17 13:15:57 -04:00
Paul Beckingham
2018eae295 Parser
- Removed now-unused ::scan method, as this is no longer used.
2014-08-17 13:06:50 -04:00
Paul Beckingham
ca3b5c9a4d Parser
- Modified ::findOperator to use collect.
2014-08-17 12:40:14 -04:00
Paul Beckingham
a13c816919 Parser
- Modified ::findAttributeModifier to use collect.
2014-08-17 12:33:30 -04:00
Paul Beckingham
56ab8e7920 Parser
- Modified ::findAttribute to use collect.
2014-08-17 12:28:40 -04:00
Paul Beckingham
ed07e47135 Parser
- Modified ::findTag to use collect.
2014-08-17 12:25:08 -04:00
Paul Beckingham
6dd359e900 Parser
- Modified ::findPattern to use collect.
2014-08-17 12:22:03 -04:00
Paul Beckingham
a4f558ee1c Parser
- Converted ::findSubstitution to use collect.
2014-08-17 12:18:35 -04:00
Paul Beckingham
50ac189693 Parser
- Converted ::applyOverrides to use collect.
2014-08-17 12:18:01 -04:00
Paul Beckingham
bbff0123b0 Parser
- Modified ::resolveAliases to use collect.
2014-08-17 12:12:11 -04:00
Paul Beckingham
4645bbc85d Parser
- Modified ::findOverrides to use collect.
2014-08-17 12:10:51 -04:00
Paul Beckingham
f1a61aaeb6 Parser
- Modified ::findCommand to use collect.
2014-08-17 12:10:08 -04:00
Paul Beckingham
4ef7d9c7fb Parser
- Modified ::findTerminator to look at all nodes.
2014-08-17 12:08:56 -04:00
Paul Beckingham
fbf8550274 Parser
- ::findBinary diagnostics.
2014-08-17 12:07:31 -04:00
Paul Beckingham
d1e38a7843 Parser
- Converted ::findTerminator to use collect.
2014-08-17 11:56:34 -04:00
Paul Beckingham
b84736a05f Parser
- Added ::collect method for recursive node gathering that needs some local
  persistence.
2014-08-17 11:37:08 -04:00
Paul Beckingham
6a9cca82d7 Parser
- Converted ::findOperator to use recursive scan.
2014-08-17 01:33:41 -04:00
Paul Beckingham
34215449a8 Parser
- Converted ::findTag to use recursive scan.
2014-08-17 01:20:10 -04:00
Paul Beckingham
c681017961 Parser
- Converted ::findSubstitution to use recursive scan.
2014-08-17 01:17:05 -04:00