added index selection

This commit is contained in:
Francesco Cozzuto
2021-11-25 11:25:23 +01:00
parent fdaebdaecc
commit ba9c01f261
7 changed files with 89 additions and 3 deletions
+7
View File
@@ -40,6 +40,7 @@ typedef enum {
EXPR_FLOAT,
EXPR_STRING,
EXPR_IDENT,
EXPR_SELECT,
} ExprKind;
typedef struct Node Node;
@@ -104,6 +105,12 @@ typedef struct {
int argc;
} CallExprNode;
typedef struct {
ExprNode base;
Node *idx;
Node *set;
} IndexSelectionExprNode;
typedef struct {
Node base;
Node *condition;