diff options
author | ubq323 <ubq323@ubq323.website> | 2023-08-03 21:08:03 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2023-08-03 21:09:26 +0100 |
commit | 7dcbac1a3ce1c6fd87d79a0b76cdb20c8f090184 (patch) | |
tree | 199dc390df6fd0604a11e1ffc6671c5995bddcb7 /ast.h | |
parent | 62126fd5070a88488fe8375105863f500b43fb7c (diff) |
add strings to parser
Diffstat (limited to 'ast.h')
-rw-r--r-- | ast.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |