From 1722fff4c7f545415f19c894649a00468774f9f5 Mon Sep 17 00:00:00 2001 From: Quinten Mennen Date: Wed, 5 Feb 2025 15:52:16 +0100 Subject: [PATCH] chore: add lexer to god --- inc/typedef.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/inc/typedef.h b/inc/typedef.h index ee4eb4e..453e08b 100644 --- a/inc/typedef.h +++ b/inc/typedef.h @@ -13,20 +13,6 @@ #ifndef 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 { T_WORD, @@ -53,4 +39,18 @@ typedef struct s_lexer char current_char; } 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