ft_printf("%s\n", node);
return ;
}
- ft_printf("%s-%s\n", branches, node->token.type);
+ ft_printf("%s-%s - %s\n", branches, node->token.type, node->token.str);
branches[ft_strlen(branches) - 1] = ' ';
ft_strlcat(branches, " |", MAX_WIDTH);
print_children_at_depth(node, depth, branches);
}
if (depth == 0)
{
- ft_printf("%s\n", node->token.type);
+ ft_printf("%s - %s\n", node->token.type, node->token.str);
ft_strlcat(branches, "|", MAX_WIDTH);
}
else
{
- ft_printf("%s-%s\n", branches, node->token.type);
+ ft_printf("%s-%s - %s\n", branches, node->token.type, node->token.str);
ft_strlcat(branches, " |", MAX_WIDTH);
}
print_children_at_depth(node, depth, branches);