13 new_token->
value = ft_strdup(value);
14 if (!new_token->
value)
21 new_token->
value = NULL;
22 new_token->
type = type;
36 node = ft_lstnew(token);
55 token = (
t_token *)last->content;
66 curr_tok = (
t_token *)curr->content;
67 next_tok = (
t_token *)next->content;
68 merged = ft_strjoin(curr_tok->
value, next_tok->
value);
69 free(curr_tok->
value);
70 curr_tok->
value = merged;
71 curr->next = next->next;
83 while (curr && curr->next)
85 curr_tok = (
t_token *)curr->content;
86 next_tok = (
t_token *)curr->next->content;
t_token * create_token(t_token_type type, char *value, t_quote_type quote_type)
void mark_last_token_adjacent(t_shell *shell)
void merge_adjacent_tokens(t_shell *shell)
static void merge_token_pair(t_list *curr, t_list *next)
int append_token(t_shell *shell, t_token_type type, char *value, t_quote_type quote_type)
Minishell ana header dosyası
enum e_token_type t_token_type
-----> LEXER <--—
enum e_quote_type t_quote_type
void free_token_content(void *content)