From be674bf59ed4f4ed3b92f13bdb35926a71953263 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20LACROIX?= Date: Thu, 13 Apr 2023 11:35:06 +0200 Subject: [PATCH] fixed little problems --- .gitignore | 3 +++ Makefile | 2 +- yacc.y | 5 ++++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 1ebe832..9d64346 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ .gitignore .idea +out +yacc.tab.* +yacc.output \ No newline at end of file diff --git a/Makefile b/Makefile index 34ad327..f87ce60 100644 --- a/Makefile +++ b/Makefile @@ -27,5 +27,5 @@ $(BIN): $(OBJ) $(CC) $(CFLAGS) $(CPPFLAGS) $^ -o $@ clean: - rm $(OBJ) y.tab.c y.tab.h lex.yy.c + rm $(OBJ) yacc.tab.c yacc.tab.h lex.yy.c diff --git a/yacc.y b/yacc.y index 9eeb4cf..49a3713 100644 --- a/yacc.y +++ b/yacc.y @@ -6,9 +6,12 @@ #include "table.h" int t; +%} + +%code provides{ int yylex (void); void yyerror (const char *); -%} +} %union {char str[NAME_MAX_LENGTH]; int nbInt; enumVarType type; } /*loops keywords*/