mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Lexer: Dead code removal
This commit is contained in:
parent
a89c996334
commit
fed3b815a0
3 changed files with 5 additions and 59 deletions
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue