folders and makefile

This commit is contained in:
gazhonsepaskwa
2025-02-13 08:54:24 +01:00
parent e747b10ed5
commit b57118d0ae
14 changed files with 25 additions and 20 deletions

View File

@@ -0,0 +1,23 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* and_or.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: nalebrun <nalebrun@student.s19.be> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/02/05 07:57:33 by nalebrun #+# #+# */
/* Updated: 2025/02/07 17:57:01 by nalebrun ### ########.fr */
/* */
/* ************************************************************************** */
#include "../../../../includes/minishell.h"
void create_and_or(t_ast_n *self, t_node *lst, t_node *token, t_msh *msh)
{
t_nodell *nodell;
nodell = cutll(lst, token, 1);
self->left = create_ast_n(nodell->node, self, msh, self->sh);
self->right = create_ast_n(nodell->next->node, self, msh, self->sh);
free_lltab(nodell);
}