summaryrefslogtreecommitdiff
path: root/ast.h
diff options
context:
space:
mode:
Diffstat (limited to 'ast.h')
-rw-r--r--ast.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/ast.h b/ast.h
new file mode 100644
index 0000000..3b59d2b
--- /dev/null
+++ b/ast.h
@@ -0,0 +1,17 @@
+#ifndef AST_H
+#define AST_H
+
+#include <stdlib.h>
+
+#define PROGRAM_NODE 0
+
+typedef struct ast_node {
+ int type;
+ void* value;
+ struct ast_node* left;
+ struct ast_node* right;
+} ast_node;
+
+ast_node* create_program_node(ast_node* previous_node, ast_node* current_node);
+
+#endif // AST_H