fixed little problems

This commit is contained in:
Raphaël LACROIX 2023-04-13 11:35:06 +02:00
parent 9cc28c32c2
commit be674bf59e
3 changed files with 8 additions and 2 deletions

3
.gitignore vendored
View file

@ -1,2 +1,5 @@
.gitignore
.idea
out
yacc.tab.*
yacc.output

View file

@ -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

5
yacc.y
View file

@ -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*/