Skip to content

Commit f0b11f8

Browse files
EOF should not be tokenized
1 parent 023f816 commit f0b11f8

File tree

3 files changed

+0
-4
lines changed

3 files changed

+0
-4
lines changed

include/basic/tokenizer.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@
7676
T(BACKGROUND) \
7777
T(EVAL) \
7878
T(CLOSE) \
79-
T(EOF) \
8079
T(DEF) \
8180
T(PROC) \
8281
T(ENDPROC) \

src/basic/main.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -700,8 +700,6 @@ void statement(struct basic_ctx* ctx)
700700
return restore_statement(ctx);
701701
case CLOSE:
702702
return close_statement(ctx);
703-
case EOF:
704-
return eof_statement(ctx);
705703
case PRINT:
706704
return print_statement(ctx);
707705
case PROC:

src/basic/tokenizer.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ const int keywords[] = {
5353
ENDIF,
5454
ENDPROC,
5555
ENDWHILE,
56-
EOF,
5756
EOR,
5857
ERROR,
5958
EVAL,

0 commit comments

Comments
 (0)