diff options
author | c+1 | 2023-05-06 09:39:23 -0400 |
---|---|---|
committer | c+1 | 2023-05-06 09:39:23 -0400 |
commit | 6f2cb8f35da2ddb8e5ad8d81341de6d94139b974 (patch) | |
tree | 2d906745f7225d24fb3cac248f3f2ab33c8ad3dd /src/include | |
parent | 3ded9b6b34c4b9cd4df4d27e903f5e848d77cfbf (diff) |
HALK HALK HALK
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/tree.h | 34 |
1 files changed, 25 insertions, 9 deletions
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 <stdlib.h> + 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 |