Commit graph

171 commits

Author SHA1 Message Date
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
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
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
Paul Beckingham
c4116d43e1 CLI
- Moved ID and UUID parsing earlier in the sequence.
2014-11-04 21:42:39 -05:00
Paul Beckingham
5a293b1f28 CLI
- An attribute name may not contains spaces.
2014-11-03 22:18:34 -05:00
Paul Beckingham
216d8bafa5 CLI
- Relocated ::injectDefaults call to after ::findOverrides, and insert a call
  to ::applyOverりides.
2014-11-02 23:39:11 -05:00
Paul Beckingham
6ccec121c9 CLI
- Implemented ::injectDefaults for rc.default.command and auto info.
2014-11-02 23:30:59 -05:00
Paul Beckingham
086f7ec684 CLI
- Half-implemented ::injectDefaults. This is a highly problematic method, and
  needs some thinking.
2014-11-02 22:50:56 -05:00
Paul Beckingham
5685bf95a6 CLI
- Implemented ::insert.
2014-11-02 22:46:11 -05:00
Paul Beckingham
9c245f838a CLI
- Implemented ::applyOverrides.
- Calls ::applyOverrides from Context.
2014-11-02 22:12:48 -05:00
Paul Beckingham
c8dfa8f7fd CLI
- Implemented ::getDataLocation.
- Called ::getDataLocation from Context.
2014-11-02 22:10:47 -05:00
Paul Beckingham
083b0cb0de CLI
- Implemented ::getBinary.
- Removed Context::program, and converted DOM and dom.t to call ::getBinary.
2014-11-02 21:49:42 -05:00
Paul Beckingham
9799fcefed CLI
- Updated ::getOverride to scan all args, display the debug feedback, and derive
  the home dir.
- Removed Parser::getOverrides calls from Context.
- Cleaned up dead code in Context::initialize.
2014-11-02 21:31:25 -05:00
Paul Beckingham
d49222e8c7 CLI
- Implemented ::getOverride, and updated Context to use it.
2014-11-02 21:14:08 -05:00
Paul Beckingham
290f248db8 CLI
- Implemented ::isCommand.
2014-11-02 11:58:33 -05:00
Paul Beckingham
05a3973107 CLI
- Removed unused ::clear method.
2014-10-31 23:57:42 -04:00
Paul Beckingham
0b212ad8bc CLI
- Switched PSEUDO args to use 'canonical' instead of 'name'.
2014-10-31 23:39:02 -04:00
Paul Beckingham
5387ab1dcb CLI
- Fixed bug where PSEUDO args did not have the correct 'raw' or 'value'
  attribute.
2014-10-31 23:30:16 -04:00
Paul Beckingham
fa890f9961 CLI
- Implemented ::getLimit.
2014-10-31 23:29:54 -04:00
Paul Beckingham
6056ca4cd7 CLI
- Implemented ::getCommand.
2014-10-31 23:11:40 -04:00
Paul Beckingham
9bc8e3bae3 CLI
- Corrected lookup for existing entities.
2014-10-31 21:54:01 -04:00
Paul Beckingham
7420ef8e28 CLI
- ::addArg now lexes args, and looks for embedded operators before deciding to
  use the lexemes.
2014-10-31 20:11:34 -04:00
Paul Beckingham
975b20a517 CLI
- Modifier entities are now available early, so use them to identify
  attmods.
2014-10-31 20:08:50 -04:00
Paul Beckingham
d5e732b47d CLI
- Added debug.parser=3 support to ::analyze.
2014-10-31 20:07:45 -04:00
Paul Beckingham
c01ee07981 CLI
- Added debug.parser=3 support to ::decomposeModSubstitutions.
2014-10-31 20:05:12 -04:00
Paul Beckingham
de6f97174e CLI
- Added debug.parser=3 support to ::decomposeModTags.
2014-10-31 20:04:40 -04:00
Paul Beckingham
5d662c0efa CLI
- Added debug.parser=3 support to ::decomposeModAttributeModifiers.
2014-10-31 20:03:54 -04:00
Paul Beckingham
caa4e0d6b9 CLI
- Added debug.parser=3 support to ::decomposeModAttributes.
2014-10-31 20:03:06 -04:00
Paul Beckingham
8abc2967f7 CLI
- Added debug.parser=3 support to ::insertJunctions.
2014-10-31 20:02:33 -04:00