Files
mmoat/srcs/parsing/ast/and_or.c
Nathan Lebrun 362a63a836 subsh bool
2025-02-06 10:53:02 +01:00

24 lines
1.2 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* and_or.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: nalebrun <nalebrun@student.s19.be> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/02/05 07:57:33 by nalebrun #+# #+# */
/* Updated: 2025/02/05 07:57:33 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(sublsts);
}