fixed little problems
This commit is contained in:
parent
9cc28c32c2
commit
be674bf59e
3 changed files with 8 additions and 2 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,2 +1,5 @@
|
|||
.gitignore
|
||||
.idea
|
||||
out
|
||||
yacc.tab.*
|
||||
yacc.output
|
2
Makefile
2
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
|
||||
|
||||
|
|
5
yacc.y
5
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*/
|
||||
|
|
Loading…
Reference in a new issue