mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
26 lines
1.3 KiB
C
26 lines
1.3 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* parse_command_list.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: khais <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2025/03/11 15:54:43 by khais #+# #+# */
|
|
/* Updated: 2025/03/11 15:55:01 by khais ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "../src/parser/command_list/command_list.h"
|
|
#include "../src/parser/wordsplit/wordsplit.h"
|
|
#include "libft.h"
|
|
#include "unistd.h"
|
|
#include <assert.h>
|
|
|
|
t_cmdlist *parse_command_list(char *input)
|
|
{
|
|
ft_dprintf(STDERR_FILENO, "Now checking command list with input [%s]\n", input);
|
|
t_wordlist *words = minishell_wordsplit(input);
|
|
t_cmdlist *cmd = cmdlist_from_wordlist(words);
|
|
wordlist_destroy(words);
|
|
return (cmd);
|
|
}
|