aboutsummaryrefslogtreecommitdiff
path: root/include/ast.h
diff options
context:
space:
mode:
authorDominik Kaiser2024-07-22 15:07:59 +0200
committerDominik Kaiser2024-07-22 15:07:59 +0200
commit47a68b82e0463f5dfd4bd8a9c4b32b4c5fbcb610 (patch)
tree35815deb503793aee2a6e97f8b421c8158e048ec /include/ast.h
parent8f386bcd29425b96017c1e9b2cd1bbd670939563 (diff)
downloadminishell-47a68b82e0463f5dfd4bd8a9c4b32b4c5fbcb610.tar.gz
minishell-47a68b82e0463f5dfd4bd8a9c4b32b4c5fbcb610.zip
Fix errors and make the parser work
Diffstat (limited to 'include/ast.h')
-rw-r--r--include/ast.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/ast.h b/include/ast.h
index b0ed996..bf19083 100644
--- a/include/ast.h
+++ b/include/ast.h
@@ -6,12 +6,12 @@
/* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/27 11:48:27 by dkaiser #+# #+# */
-/* Updated: 2024/07/09 16:54:29 by dkaiser ### ########.fr */
+/* Updated: 2024/07/10 12:31:39 by dkaiser ### ########.fr */
/* */
/* ************************************************************************** */
-#include "stdlib.h"
#include "debug_tools.h"
+#include "stdlib.h"
enum e_node_type
{
@@ -68,5 +68,8 @@ typedef struct s_node
t_node *new_node(int type);
t_node *new_pipe_node(t_node *left, t_node *right);
-t_node *new_cmd_node(char **args, t_assign **assigns, t_redirection redirs[2]);
+t_node *new_cmd_node(char **args, t_assign **assigns,
+ t_redirection redirs[2]);
t_node *new_string_node(char *string);
+
+void free_node(t_node *node);