Skip to content

Commit

Permalink
feat(array): Added the arrays expressions (not 100% ready).
Browse files Browse the repository at this point in the history
  • Loading branch information
natangscalvence committed Jan 23, 2025
1 parent 74ebdd3 commit b0910ee
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/frontend/ast/definitions.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ typedef enum
NODE_MEMBER,
NODE_MEMBER_PROPERTY,
NODE_CALL,
NODE_ARRAY,
NODE_ARRAY_ACCESS,
NODE_TERNARY,
NODE_STRING,
Expand Down Expand Up @@ -249,6 +250,12 @@ typedef struct
AstNode *op;
} PreDecrementExpr;

typedef struct
{
AstNode **elements;
size_t element_count;
} ArrayNode;

typedef struct
{
char *name;
Expand Down

0 comments on commit b0910ee

Please sign in to comment.