From b1523655614f91e765b674b4b7db6adf79ff403b Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Thu, 26 Oct 2023 10:22:35 +0100 Subject: Lexer forces uppercase for symbols --- 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 b7d00c1..5e8b47b 100644 --- a/asm/lexer.h +++ b/asm/lexer.h @@ -31,6 +31,7 @@ typedef struct typedef darr_t buffer_t; typedef darr_t token_stream_t; +#define TOKEN_STREAM_AT(STREAM_DATA, INDEX) (((token_t *)(STREAM_DATA))[INDEX]) const char *token_type_as_cstr(token_type_t type); token_stream_t tokenise_buffer(buffer_t *); -- cgit v1.2.3-13-gbd6f