aboutsummaryrefslogtreecommitdiff
path: root/src/all.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/all.h')
-rw-r--r--src/all.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/all.h b/src/all.h
index c5a983c..c35c8b7 100644
--- a/src/all.h
+++ b/src/all.h
@@ -40,7 +40,8 @@ typedef enum {
AST_PTR_DEC,
AST_OUT,
AST_IN,
- AST_LOOP
+ AST_LOOP,
+ AST_CLEAR
} ast_type_e;
struct ast_node {
@@ -58,7 +59,9 @@ typedef struct {
parser_t parser_init(lexer_t *lx);
ast_node_t *parse_program(parser_t *p);
+ast_node_t *optimize_ast(ast_node_t *ast);
void ast_free(ast_node_t *node);
+void ast_dump(ast_node_t *node, int depth);
// codegen