added map expressions

This commit is contained in:
Francesco Cozzuto
2021-11-26 08:52:24 +01:00
parent ba9c01f261
commit ed32b1a52b
6 changed files with 179 additions and 0 deletions
+8
View File
@@ -32,6 +32,7 @@ typedef enum {
EXPR_ASS,
EXPR_INT,
EXPR_MAP,
EXPR_CALL,
EXPR_LIST,
EXPR_NONE,
@@ -86,6 +87,13 @@ typedef struct {
int itemc;
} ListExprNode;
typedef struct {
ExprNode base;
Node *keys;
Node *items;
int itemc;
} MapExprNode;
typedef struct {
ExprNode base;
char *val;