mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-05 23:18:08 +01:00
Parse-cmd: Added a builder structure (unfinished)
This commit is contained in:
parent
10d7b65b08
commit
4d9fabc794
1 changed files with 26 additions and 0 deletions
26
src/parser/cmd_parsing.h
Normal file
26
src/parser/cmd_parsing.h
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue