From fd646bda9540b65e156b76217fa60e180b11d472 Mon Sep 17 00:00:00 2001 From: Maieul BOYER Date: Tue, 23 Jul 2024 15:17:35 +0200 Subject: [PATCH] fixed bebou mistake --- ast/src/print_ast.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/ast/src/print_ast.c b/ast/src/print_ast.c index cdbd0fcf..3e94626a 100644 --- a/ast/src/print_ast.c +++ b/ast/src/print_ast.c @@ -6,7 +6,7 @@ /* By: maiboyer +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/07/03 20:38:29 by maiboyer #+# #+# */ -/* Updated: 2024/07/23 14:36:20 by rparodi ### ########.fr */ +/* Updated: 2024/07/23 15:16:06 by maiboyer ### ########.fr */ /* */ /* ************************************************************************** */ @@ -97,19 +97,13 @@ void _print_term(t_ast_terminator_kind term) /// IMPL void ast_print_node_arithmetic_expansion(t_ast_node self) { - t_usize i; - if (self == NULL) return ; if (self->kind != AST_ARITHMETIC_EXPANSION) return ; - i = 0; - printf("((%s))", self->data.arithmetic_literal.value); - // while (i < self->data.arithmetic_expansion.expr->kind) - // { - // ast_print_node(self->data.function_definition.body.buffer[i++]); - // printf(" "); - // } + printf("$(("); + ast_print_node(self->data.arithmetic_expansion.expr); + printf("))"); } void ast_print_node_function_definition(t_ast_node self)