diff --git a/.gitignore b/.gitignore index e6bdaa4..8cf77d3 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,5 @@ grammar.tab.c grammar.tab.h .vscode out -tmp \ No newline at end of file +tmp +parser \ No newline at end of file diff --git a/Makefile b/Makefile index 256aad2..d742a62 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ tmp/runner.o: src/runner.c src/runner.h tmp/flex.h tmp/symbol_table.o: src/symbol_table.c src/symbol_table.h $(CC) $(CFLAGS) -o tmp/symbol_table.o -c src/symbol_table.c -parser : tmp/lex.yy.c tmp/grammar.tab.c +parser : clean tmp/lex.yy.c tmp/grammar.tab.c $(CC) -o parser tmp/lex.yy.c tmp/grammar.tab.c runner: tmp/lex.yy.c tmp/runner.o tmp/symbol_table.o