aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/tree.h34
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