diff --git a/makefile b/makefile index 366ef4d..2f3467f 100644 --- a/makefile +++ b/makefile @@ -5,7 +5,7 @@ FLEX = flex TARGET = build/py2rb -$(TARGET): build/parser.o build/lexer.o build/main.o build/scanner.o +$(TARGET): build/parser.o build/lexer.o build/main.o $(CXX) $^ -o $@ build/parser.cpp build/parser.hpp: src/parser.y | build diff --git a/src/scanner.cpp b/src/scanner.cpp deleted file mode 100644 index 9aa112c..0000000 --- a/src/scanner.cpp +++ /dev/null @@ -1,7 +0,0 @@ -#include "../src/scanner.hpp" - -int scanner_lex(yy::parser::semantic_type *yylval) -{ - static Scanner scanner(&std::cin); - return scanner.lex(yylval); -} \ No newline at end of file