update: exec works !

This commit is contained in:
maix0 2024-10-10 17:41:23 +02:00
parent 2363fadd02
commit 77e7f65b41
24 changed files with 192 additions and 499 deletions

View file

@ -6,7 +6,7 @@
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/07/26 13:27:30 by rparodi #+# #+# */
/* Updated: 2024/07/27 13:50:17 by maiboyer ### ########.fr */
/* Updated: 2024/10/10 16:58:13 by maiboyer ### ########.fr */
/* */
/* ************************************************************************** */
@ -26,7 +26,7 @@ void ast_print_node_subshell(t_ast_node self)
printf("( ");
while (i < self->data.subshell.body.len)
{
ast_print_node(self->data.subshell.body.buffer[i++]);
ast_print(self->data.subshell.body.buffer[i++]);
printf(" ");
}
printf(")");
@ -34,7 +34,7 @@ void ast_print_node_subshell(t_ast_node self)
while (i < self->data.subshell.suffixes_redirections.len)
{
printf(" ");
ast_print_node(self->data.subshell.suffixes_redirections.buffer[i++]);
ast_print(self->data.subshell.suffixes_redirections.buffer[i++]);
}
printf(" ");
_print_term(self->data.subshell.term);
@ -51,7 +51,7 @@ void ast_print_node_program(t_ast_node self)
i = 0;
while (i < self->data.program.body.len)
{
ast_print_node(self->data.program.body.buffer[i++]);
ast_print(self->data.program.body.buffer[i++]);
printf(" ");
}
}
@ -70,7 +70,7 @@ void ast_print_node_compound_statement(t_ast_node self)
printf("{ ");
while (i < self->data.compound_statement.body.len)
{
ast_print_node(self->data.compound_statement.body.buffer[i++]);
ast_print(self->data.compound_statement.body.buffer[i++]);
printf(" ");
}
printf("}");
@ -78,7 +78,7 @@ void ast_print_node_compound_statement(t_ast_node self)
while (i < self->data.compound_statement.suffixes_redirections.len)
{
printf(" ");
ast_print_node \
ast_print \
(self->data.compound_statement.suffixes_redirections.buffer[i++]);
}
printf(" ");
@ -102,6 +102,6 @@ void ast_print_node_word(t_ast_node self)
i = 0;
printf("%s", quote_type);
while (i < self->data.word.inner.len)
ast_print_node(self->data.word.inner.buffer[i++]);
ast_print(self->data.word.inner.buffer[i++]);
printf("%s", quote_type);
}