aboutsummaryrefslogtreecommitdiff
path: root/ast.h
diff options
context:
space:
mode:
Diffstat (limited to 'ast.h')
-rw-r--r--ast.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/ast.h b/ast.h
index ded91f90..3cc93f43 100644
--- a/ast.h
+++ b/ast.h
@@ -98,7 +98,7 @@ typedef enum {
Min, Max,
Array, Table, TableEntry,
FunctionDef, Lambda,
- FunctionCall,
+ FunctionCall, MethodCall,
Block,
For, While, If, When,
Reduction,
@@ -191,6 +191,11 @@ struct ast_s {
type_ast_t *extern_return_type;
} FunctionCall;
struct {
+ const char *name;
+ ast_t *self;
+ arg_ast_t *args;
+ } MethodCall;
+ struct {
ast_list_t *statements;
} Block;
struct {