Start of arithmetic

This commit is contained in:
Maieul BOYER 2024-07-27 14:43:55 +00:00
parent 102b41d170
commit 54f010969f
2 changed files with 95 additions and 54 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/26 13:33:00 by rparodi ### ########.fr */
/* Updated: 2024/07/27 13:50:17 by maiboyer ### ########.fr */
/* */
/* ************************************************************************** */
@ -56,35 +56,6 @@ void ast_print_node_program(t_ast_node self)
}
}
// void ast_print_node_compound_statement(t_ast_node self)
// {
// t_usize i;
// if (self == NULL)
// return ;
// if (self->kind != AST_COMPOUND_STATEMENT)
// return ;
// i = 0;
// if (self->data.compound_statement.bang)
// printf("! ");
// printf("{ ");
// while (i < self->data.compound_statement.body.len)
// {
// ast_print_node(self->data.compound_statement.body.buffer[i++]);
// printf(" ");
// }
// printf("}");
// i = 0;
// while (i < self->data.compound_statement.suffixes_redirections.len)
// {
// printf(" ");
// ast_print_node \
// (self->data.compound_statement.suffixes_redirections.buffer[i++]);
// }
// printf(" ");
// _print_term(self->data.compound_statement.term);
// }
void ast_print_node_compound_statement(t_ast_node self)
{
t_usize i;