diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-02-23 12:50:01 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-02-23 12:50:01 -0500 |
| commit | 9aec32149fae328d73ee4816bc12e56c65327cbf (patch) | |
| tree | fb3709cec6e13c2bcdcb7bc51d19e4b9f5c60bbc /ast.h | |
| parent | 197da905f52051e9341781b2d64e5e47a213242f (diff) | |
Code cleanup for KeywordArg
Diffstat (limited to 'ast.h')
| -rw-r--r-- | ast.h | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -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,14 +185,10 @@ 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; struct { |
