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
|
.gitignore
|
||||||
.idea
|
.idea
|
||||||
|
out
|
||||||
|
yacc.tab.*
|
||||||
|
yacc.output
|
2
Makefile
2
Makefile
|
@ -27,5 +27,5 @@ $(BIN): $(OBJ)
|
||||||
$(CC) $(CFLAGS) $(CPPFLAGS) $^ -o $@
|
$(CC) $(CFLAGS) $(CPPFLAGS) $^ -o $@
|
||||||
|
|
||||||
clean:
|
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"
|
#include "table.h"
|
||||||
|
|
||||||
int t;
|
int t;
|
||||||
|
%}
|
||||||
|
|
||||||
|
%code provides{
|
||||||
int yylex (void);
|
int yylex (void);
|
||||||
void yyerror (const char *);
|
void yyerror (const char *);
|
||||||
%}
|
}
|
||||||
|
|
||||||
%union {char str[NAME_MAX_LENGTH]; int nbInt; enumVarType type; }
|
%union {char str[NAME_MAX_LENGTH]; int nbInt; enumVarType type; }
|
||||||
/*loops keywords*/
|
/*loops keywords*/
|
||||||
|
|
Loading…
Reference in a new issue