mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-05 14:07:21 +02:00
22 lines
558 B
C++
22 lines
558 B
C++
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
#include <Context.h>
|
|
#include <Lexer.h>
|
|
|
|
#include <iostream>
|
|
|
|
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";
|
|
}
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|