diff options
Diffstat (limited to 'ast.h')
-rw-r--r-- | ast.h | 26 |
1 files changed, 0 insertions, 26 deletions
@@ -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 |