/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* parser.h :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: sede-san " # define APPEND_STR ">>" # define HEREDOC_STR "<<" # define TOKENS_COUNT 5 typedef enum e_token_type { TOKEN_WORD, TOKEN_PIPE, TOKEN_REDIRECT_IN, TOKEN_REDIRECT_OUT, TOKEN_APPEND, TOKEN_HEREDOC } t_token_type; typedef struct s_token { t_token_type type; char *value; } t_token; typedef enum e_redirection_type { REDIRECT_IN, REDIRECT_OUT, APPEND, HEREDOC } t_redirection_type; typedef struct s_redirection { t_redirection_type type; char *target; } t_redirection; /******************************************************************************/ /* Functions */ /******************************************************************************/ // parser.c extern t_list *parse(char *line, t_minishell *minishell); #endif /* PARSER_H */