| 8 | Context context; |
| 9 | |
| 10 | int main(int argc, char** argv) { |
| 11 | for (auto i = 1; i < argc; i++) { |
| 12 | std::cout << "argument '" << argv[i] << "'\n"; |
| 13 | |
| 14 | Lexer l(argv[i]); |
| 15 | std::string token; |
| 16 | Lexer::Type type; |
| 17 | while (l.token(token, type)) |
| 18 | std::cout << " token '" << token << "' " << Lexer::typeToString(type) << "\n"; |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | //////////////////////////////////////////////////////////////////////////////// |