Add comment

This commit is contained in:
XOR 2023-08-31 22:17:21 +02:00
parent 7ffca91f95
commit 84a26a7189

View file

@ -88,6 +88,8 @@ void lexer(FILE *input_file, char tokens[][MAX_TOKEN_SIZE])
break; 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) if(!is_pos_line_start)
{ {
tokens[token_index + 1][0] = ';'; tokens[token_index + 1][0] = ';';