From 4dc70c84d4226174d44f1b53599d08de7a4e83aa Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 29 Feb 2024 13:49:24 -0500 Subject: First working method calls --- ast.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'ast.h') 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, @@ -190,6 +190,11 @@ struct ast_s { arg_ast_t *args; 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; -- cgit v1.2.3