From bd80b899df4c1a5601a8b1e6fb55d6c26f0df8e1 Mon Sep 17 00:00:00 2001 From: Kyler Date: Tue, 28 Oct 2025 21:44:02 -0600 Subject: [PATCH] Moved Identifier struct definition to improve clarity --- SLS_C/include/sls/lexer.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/SLS_C/include/sls/lexer.h b/SLS_C/include/sls/lexer.h index 5d72eab..e24080b 100644 --- a/SLS_C/include/sls/lexer.h +++ b/SLS_C/include/sls/lexer.h @@ -21,6 +21,12 @@ typedef enum { TOKEN_TYPE_TUPLE, } TokenType; +typedef struct { + const char *name; + size_t length; + uint8_t is_literal; +} Identifier; + typedef enum { INTEGER_I64, INTEGER_I32, @@ -32,12 +38,6 @@ typedef enum { INTEGER_U8, } IntegerBuiltInType; -typedef struct { - const char *name; - size_t length; - uint8_t is_literal; -} Identifier; - typedef struct { uint64_t value; IntegerBuiltInType type;