summaryrefslogtreecommitdiff
path: root/ast.h
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2023-08-26 13:44:07 +0200
committerDaniel Weipert <code@drogueronin.de>2023-08-26 13:44:07 +0200
commit5f8c1d144b3c91f2c4ba75d709a74d83c1f3d5a0 (patch)
treef842fc870c24e5b913aa277747985f68f99b951a /ast.h
parentb5cc10cff15797bc9f89724ab53ac7d296fbbc0c (diff)
ast and cleanup
Diffstat (limited to 'ast.h')
-rw-r--r--ast.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/ast.h b/ast.h
deleted file mode 100644
index 7b2a35e..0000000
--- a/ast.h
+++ /dev/null
@@ -1,26 +0,0 @@
-#ifndef AST_H
-#define AST_H
-
-#include <stdlib.h>
-
-enum NODE_TYPE {
- PROGRAM_NODE,
- TYPE_NODE,
- ARGUMENT_NODE
-};
-
-typedef struct ast_node_data {
- void* value;
- void* type;
-} ast_node_data;
-
-typedef struct ast_node {
- int type;
- ast_node_data* data;
- 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