Parse-cmd: Added a builder structure (unfinished)

This commit is contained in:
Jérôme Guélen 2025-03-28 19:04:39 +01:00 committed by Jerome
parent 10d7b65b08
commit 4d9fabc794

26
src/parser/cmd_parsing.h Normal file
View file

@ -0,0 +1,26 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* cmd_parsing.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jguelen <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/03/28 17:49:55 by jguelen #+# #+# */
/* Updated: 2025/03/28 18:55:00 by jguelen ### ########.fr */
/* */
/* ************************************************************************** */
#include "../minishell.h"
//TODO
typedef struct s_cmd_builder
{
t_wordlist *tokens;
t_wordlist *current_wordlist;
t_redirect *current_redirection_list;
t_worddesc *current_word;
/*
** last_here_doc is meant to store only one entry.
*/
t_redirectee *last_here_doc;
}