42 lines
1.3 KiB
C
Raw Normal View History

/* ************************************************************************** */
/* */
/* ::: :::::::: */
2024-04-27 17:39:26 +02:00
/* parsing.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
2024-04-27 17:39:26 +02:00
/* Created: 2024/04/25 12:20:26 by adjoly #+# #+# */
/* Updated: 2024/05/19 13:45:01 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
2024-04-27 17:39:26 +02:00
#ifndef PARSING_H
# define PARSING_H
# include "libft.h"
# include "tokenizer.h"
2024-05-09 16:46:13 +02:00
2024-04-27 17:39:26 +02:00
typedef struct s_cmd
{
char *cmd;
char **argv;
int infile;
int outfile;
2024-04-27 17:39:26 +02:00
} t_cmd;
/**
* @brief Take the argv of a command a split the argv and the command it self
*
* @param The full argv of the command
*
* @return (t_cmd *) cmd and argv splited into a struct
*/
2024-05-09 16:46:13 +02:00
t_cmd *split_cmd(char *cmd_av);
/*
* @deprecated
*/
2024-05-09 16:46:13 +02:00
t_list *split_pipe(char *readline);
2024-05-07 11:04:20 +02:00
#endif