diff options
-rw-r--r-- | main.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -173,6 +173,18 @@ int size, *nxt; *nxt = t->attr.nval->var_type; return size; + } else if (t->type == INUM) { + if (--size == -1) + yyerror("VARIABLE COUNT CHANGED!!!\n"); + + *nxt = INT; + return size; + } else if (t->type == RNUM) { + if (--size == -1) + yyerror("VARIABLE COUNT CHANGED!!!\n"); + + *nxt = REAL; + return size; } return size; } |