aboutsummaryrefslogtreecommitdiff
path: root/src/ast.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast.h')
-rw-r--r--src/ast.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ast.h b/src/ast.h
index d1e904c..af7ef65 100644
--- a/src/ast.h
+++ b/src/ast.h
@@ -26,6 +26,7 @@
F(OP_GT, ">") \
F(OP_GEQ, ">=") \
F(OP_ASSIGN, "=") \
+ F(OP_MEMBER, ".") \
F(AST_LITERAL, "literal") \
F(AST_FUNCCALL, "Function call") \
F(AST_CONDITIONAL, "conditional expression") \
@@ -143,6 +144,12 @@ typedef struct ast_node {
Node **args;
int num_args;
} call;
+
+ struct {
+ i64 offset;
+ Node *expr;
+ bool is_ptr;
+ } member;
};
} Node;