From 9aec32149fae328d73ee4816bc12e56c65327cbf Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 23 Feb 2024 12:50:01 -0500 Subject: Code cleanup for KeywordArg --- ast.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'ast.h') diff --git a/ast.h b/ast.h index b3f33892..4200fc08 100644 --- a/ast.h +++ b/ast.h @@ -32,7 +32,7 @@ typedef struct when_clause_s { typedef struct arg_ast_s { const char *name; type_ast_t *type; - ast_t *default_val; + ast_t *value; struct arg_ast_s *next; } arg_ast_t; @@ -97,7 +97,7 @@ typedef enum { Min, Max, Array, Table, TableEntry, FunctionDef, Lambda, - FunctionCall, KeywordArg, + FunctionCall, Block, For, While, If, When, Reduction, @@ -185,13 +185,9 @@ struct ast_s { } Lambda; struct { ast_t *fn; - ast_list_t *args; + arg_ast_t *args; type_ast_t *extern_return_type; } FunctionCall; - struct { - const char *name; - ast_t *arg; - } KeywordArg; struct { ast_list_t *statements; } Block; -- cgit v1.2.3