feat: added variable expansion

quote removal is not implemented yet in this commit
This commit is contained in:
2026-02-12 21:10:09 +01:00
parent 8882929423
commit 83553a57d5
3 changed files with 181 additions and 61 deletions

View File

@@ -6,7 +6,7 @@
/* By: sede-san <sede-san@student.42madrid.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/10/22 19:10:13 by sede-san #+# #+# */
/* Updated: 2026/02/10 23:21:35 by sede-san ### ########.fr */
/* Updated: 2026/02/12 20:19:23 by sede-san ### ########.fr */
/* */
/* ************************************************************************** */
@@ -123,9 +123,9 @@ typedef struct s_command
/* minishell.c */
extern int minishell_init(t_minishell *minishell, char **envp);
extern void minishell_init(t_minishell *minishell, char **envp);
extern uint8_t minishell_run(t_minishell *minishell);
extern void minishell_run(t_minishell *minishell);
extern void minishell_clear(t_minishell *minishell);

View File

@@ -6,7 +6,7 @@
/* By: sede-san <sede-san@student.42madrid.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/10/22 19:03:51 by sede-san #+# #+# */
/* Updated: 2026/02/12 03:06:43 by sede-san ### ########.fr */
/* Updated: 2026/02/12 18:34:11 by sede-san ### ########.fr */
/* */
/* ************************************************************************** */
@@ -37,4 +37,5 @@ extern bool is_pipe(t_token *token);
extern bool is_redirection(t_token *token);
void redirection_add(t_list **tokens, t_token *token, t_command **command);
void words_add(t_list **tokens, t_command **command);
#endif /* PARSER_H */