summaryrefslogtreecommitdiff
path: root/ast.h
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2023-07-12 02:22:10 +0100
committerubq323 <ubq323@ubq323.website>2023-07-12 02:22:10 +0100
commitf9f7b92fdda17efe2dca455d6f641a424a97b2db (patch)
tree03f8bfa66a7b944fe9f908972b6ab2dde8b5297f /ast.h
parentd9eb793ad606fd47d17a17af24b78b46f2180f84 (diff)
more code
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