fixed little problems
Esse commit está contido em:
pai
9cc28c32c2
commit
be674bf59e
3 arquivos alterados com 8 adições e 2 exclusões
3
.gitignore
externo
3
.gitignore
externo
|
|
@ -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*/
|
||||
|
|
|
|||
Carregando…
Referência em uma nova issue