- Removed parser upgrade diagnostics, as tw is now stable.
This commit is contained in:
Paul Beckingham 2014-08-24 16:46:39 -04:00
parent 59ffcd858e
commit 7e460f10d1

View file

@ -391,8 +391,6 @@ void Parser::findTerminator ()
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
void Parser::resolveAliases () void Parser::resolveAliases ()
{ {
// context.debug ("Parse::resolveAliases");
bool something; bool something;
int safety_valve = safetyValveDefault; int safety_valve = safetyValveDefault;
@ -422,9 +420,6 @@ void Parser::resolveAliases ()
if (safety_valve <= 0) if (safety_valve <= 0)
context.debug (format (STRING_PARSER_ALIAS_NEST, safetyValveDefault)); context.debug (format (STRING_PARSER_ALIAS_NEST, safetyValveDefault));
// if (something)
// context.debug (_tree->dump ());
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
@ -848,8 +843,6 @@ void Parser::findPattern ()
// /from/to/[g] // /from/to/[g]
void Parser::findSubstitution () void Parser::findSubstitution ()
{ {
// context.debug ("Parser::findSubstitution");
std::vector <Tree*> prune; std::vector <Tree*> prune;
std::vector <Tree*> nodes; std::vector <Tree*> nodes;
collect (nodes); collect (nodes);
@ -885,16 +878,12 @@ void Parser::findSubstitution ()
// Prune branches outside the loop. // Prune branches outside the loop.
for (i = prune.begin (); i != prune.end (); ++i) for (i = prune.begin (); i != prune.end (); ++i)
(*i)->removeAllBranches (); (*i)->removeAllBranches ();
// if (prune.size ())
// context.debug (_tree->dump ());
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
// +tag // +tag
void Parser::findTag () void Parser::findTag ()
{ {
// context.debug ("Parser::findTag");
bool action = true; bool action = true;
do do
@ -943,8 +932,6 @@ void Parser::findTag ()
} }
} }
while (action); while (action);
// context.debug (_tree->dump ());
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
@ -1052,7 +1039,6 @@ void Parser::findAttribute ()
// <name>.<mod>[:=]['"]<value>['"] // <name>.<mod>[:=]['"]<value>['"]
void Parser::findAttributeModifier () void Parser::findAttributeModifier ()
{ {
// context.debug ("Parser::findAttributeModifier");
bool action = true; bool action = true;
do do
@ -1249,8 +1235,6 @@ void Parser::findAttributeModifier ()
} }
} }
while (action); while (action);
// context.debug (_tree->dump ());
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
@ -1264,7 +1248,6 @@ void Parser::findAttributeModifier ()
// //
void Parser::findIdSequence () void Parser::findIdSequence ()
{ {
// context.debug ("Parser::findIdSequence");
bool action = true; bool action = true;
do do
@ -1429,14 +1412,11 @@ void Parser::findIdSequence ()
} }
} }
while (action); while (action);
// context.debug (_tree->dump ());
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
void Parser::findUUIDList () void Parser::findUUIDList ()
{ {
// context.debug ("Parser::findUUIDList");
bool action = true; bool action = true;
do do
@ -1514,15 +1494,11 @@ void Parser::findUUIDList ()
} }
} }
while (action); while (action);
// context.debug (_tree->dump ());
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
void Parser::findOperator () void Parser::findOperator ()
{ {
// context.debug ("Parser::findOperator");
// Find the category. // Find the category.
std::pair <std::multimap <std::string, std::string>::const_iterator, std::multimap <std::string, std::string>::const_iterator> c; std::pair <std::multimap <std::string, std::string>::const_iterator, std::multimap <std::string, std::string>::const_iterator> c;
c = _entities.equal_range ("operator"); c = _entities.equal_range ("operator");
@ -1550,9 +1526,6 @@ void Parser::findOperator ()
// Prune branches outside the loop. // Prune branches outside the loop.
for (i = prune.begin (); i != prune.end (); ++i) for (i = prune.begin (); i != prune.end (); ++i)
(*i)->removeAllBranches (); (*i)->removeAllBranches ();
// if (prune.size ())
// context.debug (_tree->dump ());
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
@ -1560,9 +1533,7 @@ void Parser::findOperator ()
// Anything after READCMD, but not BINARY, RC or CONFIG --> FILTER // Anything after READCMD, but not BINARY, RC or CONFIG --> FILTER
void Parser::findFilter () void Parser::findFilter ()
{ {
// context.debug ("Parser::findFilter");
bool action = false; bool action = false;
bool before_cmd = true; bool before_cmd = true;
bool after_readcmd = false; bool after_readcmd = false;
@ -1603,15 +1574,11 @@ void Parser::findFilter ()
action = true; action = true;
} }
} }
// if (action)
// context.debug (_tree->dump ());
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
void Parser::findModifications () void Parser::findModifications ()
{ {
// context.debug ("Parser::findModifications");
bool after_writecmd = false; bool after_writecmd = false;
std::vector <Tree*> prune; std::vector <Tree*> prune;
@ -1640,16 +1607,11 @@ void Parser::findModifications ()
// Prune branches outside the loop. // Prune branches outside the loop.
for (i = prune.begin (); i != prune.end (); ++i) for (i = prune.begin (); i != prune.end (); ++i)
(*i)->removeAllBranches (); (*i)->removeAllBranches ();
// if (prune.size ())
// context.debug (_tree->dump ());
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
void Parser::findStrayModifications () void Parser::findStrayModifications ()
{ {
// context.debug ("Parser::findStrayModifications");
std::string command = getCommand (); std::string command = getCommand ();
if (command == "add" || if (command == "add" ||
command == "log") command == "log")
@ -1671,9 +1633,6 @@ void Parser::findStrayModifications ()
// Prune branches outside the loop. // Prune branches outside the loop.
for (i = prune.begin (); i != prune.end (); ++i) for (i = prune.begin (); i != prune.end (); ++i)
(*i)->removeAllBranches (); (*i)->removeAllBranches ();
// if (prune.size ())
// context.debug (_tree->dump ());
} }
} }
@ -1682,7 +1641,6 @@ void Parser::findStrayModifications ()
// are not otherwise recognized, and potentially promote them to patterns. // are not otherwise recognized, and potentially promote them to patterns.
void Parser::findPlainArgs () void Parser::findPlainArgs ()
{ {
// context.debug ("Parser::findPlainArgs");
bool action = false; bool action = false;
std::vector <Tree*> nodes; std::vector <Tree*> nodes;
@ -1726,15 +1684,11 @@ void Parser::findPlainArgs ()
} }
} }
} }
// if (action)
// context.debug (_tree->dump ());
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
void Parser::findMissingOperators () void Parser::findMissingOperators ()
{ {
// context.debug ("Parser::findMissingOperators");
bool action = false; bool action = false;
while (insertOr ()) while (insertOr ())
@ -1742,9 +1696,6 @@ void Parser::findMissingOperators ()
while (insertAnd ()) while (insertAnd ())
action = true; action = true;
// if (action)
// context.debug (_tree->dump ());
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////