From 8f5856e86e50429d1b28039ba3d876af616a5279 Mon Sep 17 00:00:00 2001 From: c+1 Date: Sat, 13 May 2023 15:16:16 -0400 Subject: _/|\_ --- src/lexer.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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); -- cgit v1.2.3