Added shape and dimensions fields to array
This commit is contained in:
parent
e320bc39c6
commit
761a1db761
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue