From d2429aa549c8f9082ba422b2e4705ff3e1d5683e Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sat, 28 Oct 2023 18:18:46 +0100 Subject: Introduced a column and line for each token Accurate error reporting can be introduced using this. --- asm/lexer.h | 1 + 1 file changed, 1 insertion(+) (limited to 'asm/lexer.h') diff --git a/asm/lexer.h b/asm/lexer.h index 5e8b47b..d2e0028 100644 --- a/asm/lexer.h +++ b/asm/lexer.h @@ -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; -- cgit v1.2.3-13-gbd6f