feat: adding all double for the fucking tokeinisation (coucou froz mais retourne en vacances the order first + correction bocal for maiboyer)

This commit is contained in:
Raphael 2024-10-04 19:11:06 +02:00
parent 8c18d18512
commit 17b5d3038b
6 changed files with 32 additions and 9 deletions

View file

@ -6,7 +6,7 @@
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/02 19:04:32 by maiboyer #+# #+# */
/* Updated: 2024/10/04 18:55:34 by rparodi ### ########.fr */
/* Updated: 2024/10/04 19:09:45 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
@ -39,7 +39,10 @@ t_error ts_double_amp(t_vec_token input, t_vec_token *output)
vec_token_push(&out, token_clone(&input.buffer[i]));
else if (input.buffer[i].type == TOK_AMP
&& input.buffer[i + 1].type == TOK_AMP)
{
vec_token_push(&out, token_new(TOK_AND));
i++;
}
else
vec_token_push(&out, token_clone(&input.buffer[i]));
i++;