Editing the order of th function and see an error (maiboyer aleddddd)
This commit is contained in:
parent
f56432b372
commit
324fbcbea0
1 changed files with 11 additions and 6 deletions
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2024/07/03 20:38:29 by maiboyer #+# #+# */
|
/* Created: 2024/07/03 20:38:29 by maiboyer #+# #+# */
|
||||||
/* Updated: 2024/07/23 15:16:06 by maiboyer ### ########.fr */
|
/* Updated: 2024/07/25 11:05:38 by rparodi ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
@ -70,15 +70,16 @@ void ast_print_node_function_definition(t_ast_node self);
|
||||||
/*^^^ DONE ^^^*/
|
/*^^^ DONE ^^^*/
|
||||||
/*vvv NOT DONE vvv*/
|
/*vvv NOT DONE vvv*/
|
||||||
|
|
||||||
|
|
||||||
|
void ast_print_node_if(t_ast_node self) NOT_DONE;
|
||||||
void ast_print_node_case(t_ast_node self) NOT_DONE;
|
void ast_print_node_case(t_ast_node self) NOT_DONE;
|
||||||
void ast_print_node_case_item(t_ast_node self) NOT_DONE;
|
void ast_print_node_case_item(t_ast_node self) NOT_DONE;
|
||||||
void ast_print_node_elif(t_ast_node self) NOT_DONE;
|
void ast_print_node_elif(t_ast_node self) NOT_DONE;
|
||||||
void ast_print_node_else(t_ast_node self) NOT_DONE;
|
void ast_print_node_else(t_ast_node self) NOT_DONE;
|
||||||
void ast_print_node_for(t_ast_node self) NOT_DONE;
|
void ast_print_node_for(t_ast_node self) NOT_DONE;
|
||||||
void ast_print_node_heredoc_redirection(t_ast_node self) NOT_DONE;
|
|
||||||
void ast_print_node_if(t_ast_node self) NOT_DONE;
|
|
||||||
void ast_print_node_until(t_ast_node self) NOT_DONE;
|
void ast_print_node_until(t_ast_node self) NOT_DONE;
|
||||||
void ast_print_node_while(t_ast_node self) NOT_DONE;
|
void ast_print_node_while(t_ast_node self) NOT_DONE;
|
||||||
|
void ast_print_node_heredoc_redirection(t_ast_node self) NOT_DONE;
|
||||||
|
|
||||||
/// HELPER_FUNCS
|
/// HELPER_FUNCS
|
||||||
|
|
||||||
|
|
@ -95,6 +96,12 @@ void _print_term(t_ast_terminator_kind term)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// IMPL
|
/// IMPL
|
||||||
|
|
||||||
|
// void ast_print_node_if(t_ast_node self)
|
||||||
|
// {
|
||||||
|
//
|
||||||
|
// }
|
||||||
|
|
||||||
void ast_print_node_arithmetic_expansion(t_ast_node self)
|
void ast_print_node_arithmetic_expansion(t_ast_node self)
|
||||||
{
|
{
|
||||||
if (self == NULL)
|
if (self == NULL)
|
||||||
|
|
@ -160,9 +167,7 @@ void ast_print_node_pipeline(t_ast_node self)
|
||||||
while (i < self->data.pipeline.suffixes_redirections.len)
|
while (i < self->data.pipeline.suffixes_redirections.len)
|
||||||
{
|
{
|
||||||
printf(" ");
|
printf(" ");
|
||||||
ast_print_node(self->data.pipeline.suffixes_redirections.buffer[i++]);
|
ast_print_node(self->data.pipeline.suffixes_redirections.buffer[i++]); } _print_term(self->data.pipeline.term);
|
||||||
}
|
|
||||||
_print_term(self->data.pipeline.term);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ast_print_node_list(t_ast_node self)
|
void ast_print_node_list(t_ast_node self)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue