feat: staring to work on all the parser

This commit is contained in:
Raphaël 2024-09-28 12:20:25 +02:00
parent fe8734ea38
commit 32afaabbbc

View file

@ -34,20 +34,24 @@ bool is_space(char c)
t_error start_analyse(t_const_str raw, enum e_token list, t_vec_token *output)
{
t_usize i;
t_token token;
i = 0;
mem_alloc(sizeof(t_token));
while (raw[i] != '\0')
{
if (is_space(raw[i]))
token =
i++;
}
return (NO_ERROR);
}
t_error tokeniser(t_const_str raw, enum e_token list)
{
t_vec_token output;
if (!raw.buf || raw.len == 0 || raw.capacity == 0)
if (!raw)
return (ERROR);
output = vec_token_new(16, NULL);
start_analyse(raw, list, &output);