summaryrefslogtreecommitdiff
path: root/ast.h
diff options
context:
space:
mode:
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);