aboutsummaryrefslogtreecommitdiff
path: root/ast.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-02-29 13:49:24 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-02-29 13:49:24 -0500
commit4dc70c84d4226174d44f1b53599d08de7a4e83aa (patch)
treeb0a612f4a3b61331caa59874fac417142c208d89 /ast.h
parent8171a38b7130849e3049a4ea15a4fd06c154d9b0 (diff)
First working method calls
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 {