aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorc+12023-05-13 15:16:16 -0400
committerc+12023-05-13 15:16:16 -0400
commit8f5856e86e50429d1b28039ba3d876af616a5279 (patch)
tree169f5cf15844bf6a4b148a9f0bfd341469f1baaa /src
parent4ef8aec33057b28ece6168347eb847373fa695b3 (diff)
_/|\_
Diffstat (limited to 'src')
-rw-r--r--src/lexer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lexer.c b/src/lexer.c
index 0cef0c9..557fd1f 100644
--- a/src/lexer.c
+++ b/src/lexer.c
@@ -119,6 +119,7 @@ token_t* lexer_get_next_token(lexer_t* lexer) {
lexer_get_c_as_string(lexer)
)
); break;
+ case '\0': return token_init(TOKEN_END, lexer_get_c_as_string(lexer)); break;
default:
fputs("Unrecognized token.", stderr);
exit(1);