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_DOUBLE,
|
||||||
ARRAY_STRING,
|
ARRAY_STRING,
|
||||||
ARRAY_BOOLEAN,
|
ARRAY_BOOLEAN,
|
||||||
ARRAY_ARRAY,
|
|
||||||
ARRAY_TOKEN_STRING,
|
ARRAY_TOKEN_STRING,
|
||||||
ARRAY_TYPE_TUPLE,
|
ARRAY_TYPE_TUPLE,
|
||||||
ARRAY_STRUCT_INLINE,
|
ARRAY_STRUCT_INLINE,
|
||||||
|
|
@ -80,7 +79,6 @@ const char *ARRAY_TYPES_NAMES[] = {
|
||||||
"Double",
|
"Double",
|
||||||
"String",
|
"String",
|
||||||
"Boolean",
|
"Boolean",
|
||||||
"Array",
|
|
||||||
"Token String",
|
"Token String",
|
||||||
"Type Tuple",
|
"Type Tuple",
|
||||||
"Inline Struct",
|
"Inline Struct",
|
||||||
|
|
@ -150,12 +148,12 @@ typedef struct ArrayLiteral {
|
||||||
double *double_literals; // type == ARRAY_DOUBLE
|
double *double_literals; // type == ARRAY_DOUBLE
|
||||||
StringLiteral *string_literals; // type == ARRAY_STRING
|
StringLiteral *string_literals; // type == ARRAY_STRING
|
||||||
Boolean *boolean_literals; // type == ARRAY_BOOLEAN
|
Boolean *boolean_literals; // type == ARRAY_BOOLEAN
|
||||||
ArrayLiteral *array_literals; // type == ARRAY_ARRAY
|
|
||||||
TokenString *token_strings; // type == ARRAY_TOKEN_STRING
|
TokenString *token_strings; // type == ARRAY_TOKEN_STRING
|
||||||
TypeTuple *type_tuples; // type == ARRAY_TYPE_TUPLE
|
TypeTuple *type_tuples; // type == ARRAY_TYPE_TUPLE
|
||||||
StructInline *type_tuples; // type == ARRAY_STRUCT_INLINE
|
StructInline *type_tuples; // type == ARRAY_STRUCT_INLINE
|
||||||
};
|
};
|
||||||
size_t length;
|
size_t *shape;
|
||||||
|
size_t dimensions;
|
||||||
} ArrayLiteral;
|
} ArrayLiteral;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue