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:
parent
8c18d18512
commit
17b5d3038b
6 changed files with 32 additions and 9 deletions
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue