aboutsummaryrefslogtreecommitdiff
path: root/asm/lexer.h
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-10-28 18:18:46 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-10-28 18:19:30 +0100
commitd2429aa549c8f9082ba422b2e4705ff3e1d5683e (patch)
tree4c92fc0afdfda31839f4965ff861cd6d05997bbc /asm/lexer.h
parent32dfcc109c6bb10465015a77b51f06856c2a7d95 (diff)
downloadovm-d2429aa549c8f9082ba422b2e4705ff3e1d5683e.tar.gz
ovm-d2429aa549c8f9082ba422b2e4705ff3e1d5683e.tar.bz2
ovm-d2429aa549c8f9082ba422b2e4705ff3e1d5683e.zip
Introduced a column and line for each token
Accurate error reporting can be introduced using this.
Diffstat (limited to 'asm/lexer.h')
-rw-r--r--asm/lexer.h1
1 files changed, 1 insertions, 0 deletions
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;