From 8b96f9a4f27ed859bdd975608419c86841664dc9 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Thu, 3 Aug 2023 21:10:52 +0100 Subject: rename "symbol" to "ident" everywhere --- ast.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ast.c') diff --git a/ast.c b/ast.c index d0a7ffe..fda03d3 100644 --- a/ast.c +++ b/ast.c @@ -48,9 +48,9 @@ AstNode astnode_new_list() { }; } -AstNode astnode_new_symbol(char *s) { +AstNode astnode_new_ident(char *s) { return (AstNode){ - .ty =AST_SYMBOL, + .ty =AST_IDENT, .as = { .str = s } @@ -79,7 +79,7 @@ void astnode_disp(AstNode *a) { } printf(")"); break; - case AST_SYMBOL: + case AST_IDENT: case AST_STRING: printf("%s:%s ",ast_ty_to_str(a->ty), a->as.str); break; @@ -88,7 +88,7 @@ void astnode_disp(AstNode *a) { } const char* ty_names[] = { - "list", "num", "symbol", "string" + "list", "num", "ident", "string" }; const char *ast_ty_to_str(AstTy ty) { return ty_names[ty]; -- cgit v1.2.3