chore: add lexer to god
This commit is contained in:
parent
914d9cf644
commit
1722fff4c7
@ -13,20 +13,6 @@
|
|||||||
#ifndef TYPEDEF_H
|
#ifndef TYPEDEF_H
|
||||||
# define TYPEDEF_H
|
# define TYPEDEF_H
|
||||||
|
|
||||||
|
|
||||||
typedef struct s_enviroment
|
|
||||||
{
|
|
||||||
char *name;
|
|
||||||
char *value;
|
|
||||||
struct s_enviroment *next;
|
|
||||||
} t_enviroment;
|
|
||||||
|
|
||||||
typedef struct s_minishell
|
|
||||||
{
|
|
||||||
t_enviroment *enviroment;
|
|
||||||
|
|
||||||
} t_minishell;
|
|
||||||
|
|
||||||
typedef enum e_token_type
|
typedef enum e_token_type
|
||||||
{
|
{
|
||||||
T_WORD,
|
T_WORD,
|
||||||
@ -53,4 +39,18 @@ typedef struct s_lexer
|
|||||||
char current_char;
|
char current_char;
|
||||||
} t_lexer;
|
} t_lexer;
|
||||||
|
|
||||||
|
typedef struct s_enviroment
|
||||||
|
{
|
||||||
|
char *name;
|
||||||
|
char *value;
|
||||||
|
struct s_enviroment *next;
|
||||||
|
} t_enviroment;
|
||||||
|
|
||||||
|
typedef struct s_minishell
|
||||||
|
{
|
||||||
|
t_enviroment *enviroment;
|
||||||
|
t_lexer *lexer;
|
||||||
|
|
||||||
|
} t_minishell;
|
||||||
|
|
||||||
#endif // TYPEDEF_H
|
#endif // TYPEDEF_H
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user