Lexer: Dead code removal

This commit is contained in:
Paul Beckingham 2015-07-17 14:59:42 -04:00
parent a89c996334
commit fed3b815a0
3 changed files with 5 additions and 59 deletions

View file

@ -12,9 +12,11 @@ int main (int argc, char** argv)
{
std::cout << "argument '" << argv[i] << "'\n";
auto all = Lexer::tokens (argv[i]);
for (auto token : Lexer::tokens (argv[i]))
std::cout << " token '" << token.first << "' " << Lexer::typeToString (token.second) << "\n";
Lexer l (argv[i]);
std::string token;
Lexer::Type type;
while (l.token (token, type))
std::cout << " token '" << token << "' " << Lexer::typeToString (type) << "\n";
}
}