aboutsummaryrefslogtreecommitdiff
path: root/asm/lexer.h
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-11-29 15:38:57 +0000
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-11-29 15:38:57 +0000
commitac70d4031c5760e756e1d9ffd5228204969afc5f (patch)
tree3e1011b947adc45aff93559e645a2656dbe8c1ab /asm/lexer.h
parent1cba5ccd8d3c95198bf5858af2540d3e1aedfb2d (diff)
downloadovm-ac70d4031c5760e756e1d9ffd5228204969afc5f.tar.gz
ovm-ac70d4031c5760e756e1d9ffd5228204969afc5f.tar.bz2
ovm-ac70d4031c5760e756e1d9ffd5228204969afc5f.zip
Added function to copy tokens
This essentially just copies the internal string of the token into a new buffer.
Diffstat (limited to 'asm/lexer.h')
-rw-r--r--asm/lexer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/asm/lexer.h b/asm/lexer.h
index 3434b72..734ffa1 100644
--- a/asm/lexer.h
+++ b/asm/lexer.h
@@ -71,6 +71,8 @@ typedef struct
size_t str_size;
} token_t;
+token_t token_copy(token_t);
+
typedef enum
{
LERR_OK = 0,