CmdCustom

- Removed Parser details.
This commit is contained in:
Paul Beckingham 2014-10-31 22:59:32 -04:00
parent bc5cfb2740
commit 6324e3b63a

View file

@ -86,19 +86,10 @@ int CmdCustom::execute (std::string& output)
Lexer::Type type;
Lexer lex (reportFilter);
lex.ambiguity (false);
std::vector <std::string> filterArgs;
while (lex.token (lexeme, type))
{
filterArgs.push_back (lexeme);
context.cli.add (lexeme);
}
std::vector <std::string>::reverse_iterator arg;
for (arg = filterArgs.rbegin (); arg != filterArgs.rend (); ++ arg)
context.parser.captureFirst (*arg);
// Reparse after tree change.
context.parser.parse ();
context.cli.analyze ();
// Apply filter.