tokenizer update

This commit is contained in:
gazhonsepaskwa
2025-01-22 16:05:02 +01:00
parent 6539c3b9cb
commit 8dabbc426f
7 changed files with 44 additions and 20 deletions

View File

@@ -38,12 +38,15 @@ static t_node *tokenize_base(char *str)
static void set_token(t_node *head)
{
t_node *it;
t_token last_token;
it = head;
last_token = UNSET;
while (it != NULL)
{
it->token = get_token(it->val);
it->pressision = get_pressision(it->val, it->token);
it->pressision = get_pressision(it->val, it->token, last_token);
last_token = it->token;
it = it->next;
}
}