summaryrefslogtreecommitdiff
path: root/yacc.c
diff options
context:
space:
mode:
Diffstat (limited to 'yacc.c')
-rw-r--r--yacc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/yacc.c b/yacc.c
index 4c46a0d..760465d 100644
--- a/yacc.c
+++ b/yacc.c
@@ -818,6 +818,7 @@ nexttk()
break;
case '/': st = stm[st][2]; break;
case '*': st = stm[st][3]; break;
+ case EOF: return TEof;
}
if (st==5)
die("invalid token");
@@ -834,8 +835,6 @@ nexttk()
return TColon;
case '{':
return TLBrack;
- case EOF:
- return TEof;
case '\'':
idnt[0] = '\'';
idnt[1] = fgetc(fin);