style : norming all the header (sorted the enum)

This commit is contained in:
Raphael 2024-09-27 22:37:41 +02:00
parent 1ba78fe873
commit 58abb9b168
4 changed files with 68 additions and 8 deletions

View file

@ -6,7 +6,7 @@
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/09/25 16:27:03 by rparodi #+# #+# */
/* Updated: 2024/09/27 13:14:23 by rparodi ### ########.fr */
/* Updated: 2024/09/27 22:29:04 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
@ -15,10 +15,25 @@
#include "me/types.h"
#include "me/vec/vec_token.h"
#include <stdio.h>
#include <stdbool.h>
bool is_space(char c)
{
if (c == ' ')
return (true);
return (false);
}
t_error start_analyse(t_const_str raw, enum e_token list, t_vec_token *output)
{
t_usize i;
i = 0;
while (raw[i] != '\0')
{
if (is_space(raw[i]))
i++;
}
}
t_error tokeniser(t_const_str raw, enum e_token list)