diff options
author | ubq323 <ubq323@ubq323.website> | 2023-07-12 02:22:10 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2023-07-12 02:22:10 +0100 |
commit | f9f7b92fdda17efe2dca455d6f641a424a97b2db (patch) | |
tree | 03f8bfa66a7b944fe9f908972b6ab2dde8b5297f /ast.h | |
parent | d9eb793ad606fd47d17a17af24b78b46f2180f84 (diff) |
more code
Diffstat (limited to 'ast.h')
-rw-r--r-- | ast.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -9,6 +9,7 @@ typedef enum { AST_NUM, AST_SYMBOL, } AstTy; +#define AST_TY_LAST AST_SYMBOL+1 struct _astnode; typedef struct _astnode AstNode; @@ -39,6 +40,8 @@ AstNode astnode_new_symbol(char *s); void astnode_disp(AstNode *a); +const char *ast_ty_to_str(AstTy ty); + #endif |