Introduced a column and line for each token
Accurate error reporting can be introduced using this.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user