diff options
Diffstat (limited to 'lex.c')
-rw-r--r-- | lex.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -232,12 +232,17 @@ lex_line(void) { struct token * lex_file(const char *filename_local, FILE *fd_local) { + struct token start; + filename = filename_local; fd = fd_local; line_number = 1; tok_cursor = tok_start = NULL; + start.type = TOK_BEGIN; + add_token(start); + while (NULL != fgets(buf, sizeof(buf), fd)) { column_number = 0; if (lex_line()) { |