Introduced a column and line for each token

Accurate error reporting can be introduced using this.
This commit is contained in:
2023-10-28 18:18:46 +01:00
parent 32dfcc109c
commit d2429aa549
2 changed files with 24 additions and 11 deletions

View File

@@ -25,6 +25,7 @@ typedef enum TokenType
typedef struct
{
token_type_t type;
size_t column, line;
char *str;
size_t str_size;
} token_t;