This commit is contained in:
gazhonsepaskwa
2025-02-07 18:08:37 +01:00
parent cc57905fa9
commit d3849d196f
18 changed files with 178 additions and 186 deletions

View File

@@ -3,10 +3,10 @@
/* ::: :::::::: */
/* ast.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lderidde <lderidde@student.s19.be> +#+ +:+ +#+ */
/* By: nalebrun <nalebrun@student.s19.be> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/01/24 08:22:16 by lderidde #+# #+# */
/* Updated: 2025/02/05 14:04:12 by lderidde ### ########.fr */
/* Updated: 2025/02/07 17:57:10 by nalebrun ### ########.fr */
/* */
/* ************************************************************************** */
@@ -15,7 +15,7 @@
t_ast_n *create_ast_n(t_node *lst, t_ast_n *parent, t_msh *msh, bool subsh)
{
t_ast_n *node;
t_ast_n *node;
t_node *token;
node = malloc(sizeof(t_ast_n));
@@ -29,7 +29,7 @@ t_ast_n *create_ast_n(t_node *lst, t_ast_n *parent, t_msh *msh, bool subsh)
node->_stdin = 0;
node->save_stdo = 1;
node->save_stdi = 0;
node->sh = subsh;
node->sh = subsh;
if (node->state == _AND || node->state == _OR)
create_and_or(node, lst, token, msh);
else if (node->state == _SUBSH)
@@ -43,7 +43,7 @@ t_ast_n *create_ast_n(t_node *lst, t_ast_n *parent, t_msh *msh, bool subsh)
t_ast_n *get_ast(t_msh *msh, t_node *lst)
{
t_ast_n *head;
t_ast_n *head;
head = create_ast_n(lst, NULL, msh, false);
return (head);