summaryrefslogtreecommitdiff
path: root/ast.c
diff options
context:
space:
mode:
Diffstat (limited to 'ast.c')
-rw-r--r--ast.c8
1 files changed, 4 insertions, 4 deletions
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];