aboutsummaryrefslogtreecommitdiff
path: root/ast.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-02-23 12:50:01 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-02-23 12:50:01 -0500
commit9aec32149fae328d73ee4816bc12e56c65327cbf (patch)
treefb3709cec6e13c2bcdcb7bc51d19e4b9f5c60bbc /ast.h
parent197da905f52051e9341781b2d64e5e47a213242f (diff)
Code cleanup for KeywordArg
Diffstat (limited to 'ast.h')
-rw-r--r--ast.h10
1 files changed, 3 insertions, 7 deletions
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,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 {