- Now that all (?) Parser methods for tree scanning can be called more than
  once, move all methods into the ::parse method.
This commit is contained in:
Paul Beckingham 2014-05-31 22:17:56 -04:00
parent a86408c5a3
commit fc5dad7a9a
2 changed files with 9 additions and 2 deletions

View file

@ -381,8 +381,7 @@ int Context::run ()
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
// Locate and dispatch to the command whose keyword matches via autoComplete // Dispatch to the command found by the parser.
// with the earliest argument.
int Context::dispatch (std::string &out) int Context::dispatch (std::string &out)
{ {
// Autocomplete args against keywords. // Autocomplete args against keywords.

View file

@ -144,13 +144,21 @@ Tree* Parser::tree ()
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
Tree* Parser::parse () Tree* Parser::parse ()
{ {
findBinary ();
findTerminator (); findTerminator ();
findOverrides ();
applyOverrides ();
findSubstitution (); findSubstitution ();
findPattern (); findPattern ();
findTag (); findTag ();
findAttribute (); findAttribute ();
findAttributeModifier (); findAttributeModifier ();
findOperator (); findOperator ();
findCommand ();
findUUIDList ();
findIdSequence ();
findFilter (); findFilter ();
findModifications (); findModifications ();