added map expressions
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user