From f9f7b92fdda17efe2dca455d6f641a424a97b2db Mon Sep 17 00:00:00 2001 From: ubq323 Date: Wed, 12 Jul 2023 02:22:10 +0100 Subject: more code --- ast.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ast.h') diff --git a/ast.h b/ast.h index 3647a7b..b3e9d75 100644 --- a/ast.h +++ b/ast.h @@ -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 -- cgit v1.2.3