「✨」 feat: Parsing of command kinda working

This commit is contained in:
KeyZox committed 2024-05-30 17:59:49 +02:00
1 parent d84749d009
commit 6bbdef9d7c
14 files changed
+248 -33

No files matched your search

+3 -3
View File
@@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/05/18 20:13:50 by adjoly #+# #+# */
/* Updated: 2024/05/28 14:25:18 by adjoly ### ########.fr */
/* Updated: 2024/05/28 16:41:49 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@@ -17,13 +17,13 @@ t_list *tokenizer(char *readline)
t_list *token;
t_list *piped;
t_list *tmp;
piped = __split_pipe(readline);
token = NULL;
tmp = piped;
while (tmp)
{
ft_lstadd_back(&token, ft_lstnew((void*)__to_token(tmp->content)));
ft_lstadd_back(&token, ft_lstnew((void *)__to_token(tmp->content)));
tmp = tmp->next;
}
ft_lstclear(&piped, free);