48 lines
1.3 KiB
C
48 lines
1.3 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* minishell_structs.h :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2021/10/08 02:35:52 by lperrey #+# #+# */
|
|
/* Updated: 2021/10/19 20:20:35 by lperrey ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#ifndef MINISHELL_STRUCTS_H
|
|
# define MINISHELL_STRUCTS_H
|
|
|
|
|
|
enum e_token_id
|
|
{
|
|
T_TOKEN = 0,
|
|
T_LESS = '<',
|
|
T_GREAT = '>',
|
|
T_PIPE = '|',
|
|
T_DLESS, //'<<'
|
|
T_DGREAT, //'>>'
|
|
T_WORD,
|
|
//T_NAME,
|
|
//T_NEWLINE,
|
|
//T_IO_NUMBER
|
|
//T_ASSIGNMENT_WORD
|
|
};
|
|
|
|
typedef struct s_token
|
|
{
|
|
char *content;
|
|
struct s_token *next;
|
|
enum e_token_id id;
|
|
} t_token;
|
|
|
|
typedef struct s_all
|
|
{
|
|
char **envp;
|
|
char *prompt_base;
|
|
char *prompt;
|
|
t_token *token_list;
|
|
} t_all;
|
|
|
|
#endif
|