This commit is contained in:
Nathan Lebrun
2025-01-31 13:09:35 +01:00
parent 2367f6a42d
commit 304eeb73eb
8 changed files with 94 additions and 17 deletions

View File

@@ -39,8 +39,9 @@ void truncate_comment(char *str)
int main(int ac, char **av, char **envp)
{
t_node *lst;
t_ast_n *ast;
// t_ast_n *ast;
int dio;
(void)envp;
if (ac != 3)
{
@@ -54,16 +55,24 @@ int main(int ac, char **av, char **envp)
if (DEBUG)
{
dio = drawio_init(av[1]);
gen_dio_linked_list(lst, dio);
// gen_dio_linked_list(lst, dio);
}
ast = get_ast(envp, lst);
if (!ast)
return (1);
// ast = get_ast(envp, lst);
// if (!ast)
// return (1);
if (DEBUG)
{
gen_dio_ast(ast, dio);
// gen_dio_ast(ast, dio);
drawio_end_file(dio);
ft_debug(" draw.io file generated !\n");
}
// tmp
t_nodell *lls = cutll(lst, "||", 1);
while (lls)
{
gen_dio_linked_list(lls->node, dio);
lls = lls->next;
}
free_linked_list(lst);
}