chore: add lexer to god

This commit is contained in:
Quinten Mennen 2025-02-05 15:52:16 +01:00
parent 914d9cf644
commit 1722fff4c7

View File

@ -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