diff options
-rw-r--r-- | main.c | 1 | ||||
-rw-r--r-- | makefile | 2 | ||||
-rw-r--r-- | pc.l | 4 |
3 files changed, 3 insertions, 4 deletions
@@ -148,7 +148,6 @@ ptree *t; } else if (t->type != LIST) { return 1; } else { - fprintf(stderr, "PTR: %x\n", t); yyerror("NOT A PARAMETER LIST\n"); } @@ -1,5 +1,5 @@ CC = gcc -FLAGS = -g -O0 -Wall -ggdb3 +FLAGS = -g -O0 -Wall -ggdb3 -Wno-parentheses YACC = yacc LEX = lex @@ -35,7 +35,7 @@ id [A-Za-z][A-Za-z0-9_]* return PROG; } -input { +output { node *tmp; tmp = scope_insert(cur_scope, strdup("write")); tmp->func_info = malloc(sizeof(struct fi)); @@ -46,7 +46,7 @@ input { return IO; } -output { +input { node *tmp; tmp = scope_insert(cur_scope, strdup("read")); tmp->func_info = malloc(sizeof(struct fi)); |