fixed bebou mistake
This commit is contained in:
parent
d5ee4bb13b
commit
fd646bda95
1 changed files with 4 additions and 10 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 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
|
/// IMPL
|
||||||
void ast_print_node_arithmetic_expansion(t_ast_node self)
|
void ast_print_node_arithmetic_expansion(t_ast_node self)
|
||||||
{
|
{
|
||||||
t_usize i;
|
|
||||||
|
|
||||||
if (self == NULL)
|
if (self == NULL)
|
||||||
return ;
|
return ;
|
||||||
if (self->kind != AST_ARITHMETIC_EXPANSION)
|
if (self->kind != AST_ARITHMETIC_EXPANSION)
|
||||||
return ;
|
return ;
|
||||||
i = 0;
|
printf("$((");
|
||||||
printf("((%s))", self->data.arithmetic_literal.value);
|
ast_print_node(self->data.arithmetic_expansion.expr);
|
||||||
// while (i < self->data.arithmetic_expansion.expr->kind)
|
printf("))");
|
||||||
// {
|
|
||||||
// ast_print_node(self->data.function_definition.body.buffer[i++]);
|
|
||||||
// printf(" ");
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ast_print_node_function_definition(t_ast_node self)
|
void ast_print_node_function_definition(t_ast_node self)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue