From 86c9a7e5c47c5c3eb70e06ea5e278de8022fd5b2 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Mon, 10 Jul 2023 21:35:02 +0100 Subject: minor --- ast.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ast.h') diff --git a/ast.h b/ast.h index 84a3341..f352992 100644 --- a/ast.h +++ b/ast.h @@ -5,8 +5,9 @@ #include typedef enum { - AST_NUM, + AST_NOTHING, AST_LIST, + AST_NUM, } AstTy; struct _astnode; @@ -29,6 +30,7 @@ struct _astnode { AstVec astvec_new(); void astvec_append(AstVec *v, AstNode val); +void astnode_append(AstNode *l, AstNode val); AstNode astnode_new_num(int n); AstNode astnode_new_list(); -- cgit v1.2.3