diff options
Diffstat (limited to 'src/parse/parse.c')
| -rwxr-xr-x | src/parse/parse.c | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/src/parse/parse.c b/src/parse/parse.c index 867325b..36e603a 100755 --- a/src/parse/parse.c +++ b/src/parse/parse.c @@ -47,17 +47,19 @@ t_ret *parse(t_ftlst *input) } } } - while(ret->ast->cmd_argv != NULL) - { - printf("[%s]\n", ((t_token *)ret->ast->cmd_argv->data)->content); - ret->ast->cmd_argv = ret->ast->cmd_argv->next; - } - while(ret->ast->redirs != NULL) - { - printf("[%s]\n", ((t_token *)ret->ast->redirs->data)->content); - ret->ast->redirs = ret->ast->redirs->next; - } - ast_destroy(ret->ast); - ft_lstdestroy(&ret->rest, (void (*)(void*))token_destroy); + // printf("===========cmd=============\n"); + // while(ret->ast->cmd_argv != NULL) + // { + // printf("[%s]\n", ((t_token *)ret->ast->cmd_argv->data)->content); + // ret->ast->cmd_argv = ret->ast->cmd_argv->next; + // } + // printf("=========redir============\n"); + // while(ret->ast->redirs != NULL) + // { + // printf("[%s]\n", ((t_token *)ret->ast->redirs->data)->content); + // ret->ast->redirs = ret->ast->redirs->next; + // } + //ast_destroy(ret->ast); + //ft_lstdestroy(&ret->rest, (void (*)(void*))token_destroy); return first; } |
