From 84a26a7189993580d05473678cf6465c7973f1b2 Mon Sep 17 00:00:00 2001 From: XOR Date: Thu, 31 Aug 2023 22:17:21 +0200 Subject: [PATCH] Add comment --- src/lexer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lexer.c b/src/lexer.c index de0c8ea..a98e62f 100755 --- a/src/lexer.c +++ b/src/lexer.c @@ -88,6 +88,8 @@ void lexer(FILE *input_file, char tokens[][MAX_TOKEN_SIZE]) break; } } + // Add end of tokens marker + // If there was no \n at the end of the file, we need to add a ';' if(!is_pos_line_start) { tokens[token_index + 1][0] = ';';