summaryrefslogtreecommitdiff
path: root/ast.h
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-06-26 12:45:41 +0100
committerubq323 <ubq323@ubq323.website>2024-06-26 12:45:41 +0100
commit63206b605c36140f2bd476e054b8318c8b08f472 (patch)
treea6e6a891638634a16a2bf3c7e8899a22a20393f8 /ast.h
parenta2525f2fc3f41c792065e61079e8e7126210529e (diff)
support multiple input filenames
Diffstat (limited to 'ast.h')
-rw-r--r--ast.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/ast.h b/ast.h
index 0d5c190..ead9cc6 100644
--- a/ast.h
+++ b/ast.h
@@ -36,10 +36,11 @@ void astnode_append(AstNode *l, AstNode val);
AstNode astnode_new_num(int n);
AstNode astnode_new_list();
-AstNode astnode_new_ident(char *s);
-AstNode astnode_new_string(char *s);
+AstNode astnode_new_ident(const char *s);
+AstNode astnode_new_string(const char *s);
void astnode_disp(AstNode *a);
+void astnode_free(AstNode *a);
const char *ast_ty_to_str(AstTy ty);