From 7dcbac1a3ce1c6fd87d79a0b76cdb20c8f090184 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Thu, 3 Aug 2023 21:08:03 +0100 Subject: add strings to parser --- ast.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ast.h') diff --git a/ast.h b/ast.h index b3e9d75..b1569c4 100644 --- a/ast.h +++ b/ast.h @@ -8,8 +8,8 @@ typedef enum { AST_LIST, AST_NUM, AST_SYMBOL, + AST_STRING, } AstTy; -#define AST_TY_LAST AST_SYMBOL+1 struct _astnode; typedef struct _astnode AstNode; @@ -37,6 +37,7 @@ void astnode_append(AstNode *l, AstNode val); AstNode astnode_new_num(int n); AstNode astnode_new_list(); AstNode astnode_new_symbol(char *s); +AstNode astnode_new_string(char *s); void astnode_disp(AstNode *a); -- cgit v1.2.3