aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-04-01 13:03:26 +0200
committerCharles <sircharlesaze@gmail.com>2020-04-01 13:03:26 +0200
commit551e668e1b7a030fdff236067963100c7d8747a5 (patch)
tree198055e7c4e7f847d61949347dbd8dd3cbdc44ee /include
parentb15ab562d74b5111ac7c9bd6e0ec185435902472 (diff)
downloadminishell-551e668e1b7a030fdff236067963100c7d8747a5.tar.gz
minishell-551e668e1b7a030fdff236067963100c7d8747a5.tar.bz2
minishell-551e668e1b7a030fdff236067963100c7d8747a5.zip
Added AST functions, tested eval with basic input
Diffstat (limited to 'include')
-rw-r--r--include/ast.h8
-rw-r--r--include/eval.h1
2 files changed, 8 insertions, 1 deletions
diff --git a/include/ast.h b/include/ast.h
index 4ee3396..63dc12c 100644
--- a/include/ast.h
+++ b/include/ast.h
@@ -6,6 +6,11 @@
** \brief AST structs
*/
+# include <stdlib.h>
+# include <stdbool.h>
+# include "libft_mem.h"
+# include "libft_util.h"
+
/**
** \brief Separator type
** \param SEP_END Regular command end `;`
@@ -77,4 +82,7 @@ struct s_ast
} data;
};
+t_ast *ast_new(t_ast_tag tag, void *data);
+void ast_destroy(t_ast *ast);
+
#endif
diff --git a/include/eval.h b/include/eval.h
index ec04ff5..0c3240a 100644
--- a/include/eval.h
+++ b/include/eval.h
@@ -15,7 +15,6 @@
typedef struct
{
- int status;
int in_pipe[2]; // need stack pipe
int out_pipe[2];
t_path path;