diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lexer.c | 1 |
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); |