From 761a1db761910c25323199a5b18b5e9325385deb Mon Sep 17 00:00:00 2001 From: Kyler Date: Thu, 30 Oct 2025 23:22:33 -0600 Subject: [PATCH] Added shape and dimensions fields to array --- SLS_C/include/sls/lexer.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/SLS_C/include/sls/lexer.h b/SLS_C/include/sls/lexer.h index 988e600..b6d7fdd 100644 --- a/SLS_C/include/sls/lexer.h +++ b/SLS_C/include/sls/lexer.h @@ -60,7 +60,6 @@ typedef enum { ARRAY_DOUBLE, ARRAY_STRING, ARRAY_BOOLEAN, - ARRAY_ARRAY, ARRAY_TOKEN_STRING, ARRAY_TYPE_TUPLE, ARRAY_STRUCT_INLINE, @@ -80,7 +79,6 @@ const char *ARRAY_TYPES_NAMES[] = { "Double", "String", "Boolean", - "Array", "Token String", "Type Tuple", "Inline Struct", @@ -150,12 +148,12 @@ typedef struct ArrayLiteral { double *double_literals; // type == ARRAY_DOUBLE StringLiteral *string_literals; // type == ARRAY_STRING Boolean *boolean_literals; // type == ARRAY_BOOLEAN - ArrayLiteral *array_literals; // type == ARRAY_ARRAY TokenString *token_strings; // type == ARRAY_TOKEN_STRING TypeTuple *type_tuples; // type == ARRAY_TYPE_TUPLE StructInline *type_tuples; // type == ARRAY_STRUCT_INLINE }; - size_t length; + size_t *shape; + size_t dimensions; } ArrayLiteral; typedef struct {