Add comment
This commit is contained in:
parent
7ffca91f95
commit
84a26a7189
1 changed files with 2 additions and 0 deletions
|
@ -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] = ';';
|
||||||
|
|
Loading…
Reference in a new issue