update: fold <CARRET><WORD> into a TOK_REDIR token

This commit is contained in:
maix0 2024-10-05 18:06:51 +02:00
parent 3287b6a2a7
commit 7cb3582b1a
6 changed files with 64 additions and 4 deletions

View file

@ -6,7 +6,7 @@
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/02 18:43:41 by maiboyer #+# #+# */
/* Updated: 2024/10/05 13:10:56 by maiboyer ### ########.fr */
/* Updated: 2024/10/05 18:03:54 by maiboyer ### ########.fr */
/* */
/* ************************************************************************** */
@ -43,6 +43,7 @@ t_error ts_double_string_pass(t_vec_token input, t_vec_token *output);
t_error ts_fold_no_quote(t_vec_token input, t_vec_token *output);
t_error ts_fold_whitespace(t_vec_token input, t_vec_token *output);
t_error ts_do_fuck_all(t_vec_token input, t_vec_token *output);
t_error ts_fold_redir(t_vec_token input, t_vec_token *output);
t_error ts_fold_expension(t_vec_token input, t_vec_token *output);

View file

@ -6,7 +6,7 @@
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/09/26 17:59:23 by maiboyer #+# #+# */
/* Updated: 2024/10/05 13:11:34 by maiboyer ### ########.fr */
/* Updated: 2024/10/05 18:02:03 by maiboyer ### ########.fr */
/* */
/* ************************************************************************** */
@ -39,6 +39,7 @@ enum e_token
TOK_WHITESPACE, // whitespace outside of quoted strings
TOK_NALPHANUM, // a non alphanumeric character, used in the expansion folding, then folded back into NQUOTE
TOK_WORD, // a meta token, which contains subtokens
TOK_REDIR, // a meta token, which contains <OPERATOR> being an [D](L|R)CARRET and the arg being a WORD
};
typedef struct s_token