diff --git a/templates/c++/lexer.cpp b/templates/c++/lexer.cpp index 4e9d5f6..0cc09bb 100644 --- a/templates/c++/lexer.cpp +++ b/templates/c++/lexer.cpp @@ -88,19 +88,3 @@ char {{name}}::peek() { std::size_t {{name}}::getByteOffset() { return m_offset; } - -//Temporary main -int main(int argc, char** argv) { - std::istringstream in(argv[1]); - {{name}} lex(in); - try { - while (true) - std::cout << "Match: " << lex.nextToken().content << std::endl; - } - catch ({{name}}::NoMoreTokens& err) { - std::cout << "DONE, read " << lex.getByteOffset() << " bytes." << std::endl; - } - catch ({{name}}::NoMatch& err) { - std::cout << "No match, " << lex.getByteOffset() << std::endl; - } -}