From 6f2cb8f35da2ddb8e5ad8d81341de6d94139b974 Mon Sep 17 00:00:00 2001 From: c+1 Date: Sat, 6 May 2023 09:39:23 -0400 Subject: HALK HALK HALK --- src/include/tree.h | 34 +++++++++++++++++++++++++--------- 1 file changed, 25 insertions(+), 9 deletions(-) (limited to 'src/include') diff --git a/src/include/tree.h b/src/include/tree.h index 9ba713b..34e8e4f 100644 --- a/src/include/tree.h +++ b/src/include/tree.h @@ -1,25 +1,41 @@ #ifndef TREE_H #define TREE_H + #include + typedef struct TREE_STRUC { + enum { TREE_VAR_DEF, - //TREE_FUN_DEF, TREE_VAR, - //TREE_FUN_CALL, - //TREE_STR, - //TREE_COMP + + TREE_FN_DEF, + TREE_FN_CALL, + + TREE_STR, + + TREE_SUBTREE, } type; - char* VAR_DEF_name; - struct TREE_STRUC* VAR_DEF_value; + char* var_def_name; + struct TREE_STRUC* var_def_val; + + char* var_name; + + char* fn_call_name; + struct TREE_STRUC** fn_call_argv; + size_t fn_call_argsize; + + char* str_val; + + struct TREE_STRUC* subtree_val; + size_t subtree_size; - char* VAR_name; +} tree_t; -} TREE_t; +tree_t* tree_init(int type); -TREE_t* tree_init(int type); #endif -- cgit v1.2.3