mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
23 lines
563 B
C++
23 lines
563 B
C++
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
#include <iostream>
|
|
#include <Lexer.h>
|
|
#include <Context.h>
|
|
|
|
Context context;
|
|
|
|
int main (int argc, char** argv)
|
|
{
|
|
for (auto i = 1; i < argc; i++)
|
|
{
|
|
std::cout << "argument '" << argv[i] << "'\n";
|
|
|
|
Lexer l (argv[i]);
|
|
std::string token;
|
|
Lexer::Type type;
|
|
while (l.token (token, type))
|
|
std::cout << " token '" << token << "' " << Lexer::typeToString (type) << "\n";
|
|
}
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|