summaryrefslogtreecommitdiff
path: root/ast.h
diff options
context:
space:
mode:
Diffstat (limited to 'ast.h')
-rw-r--r--ast.h3
1 files changed, 3 insertions, 0 deletions
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