From 5f8c1d144b3c91f2c4ba75d709a74d83c1f3d5a0 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sat, 26 Aug 2023 13:44:07 +0200 Subject: ast and cleanup --- ast.h | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 ast.h (limited to 'ast.h') 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 - -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 -- cgit v1.2.3