74 file = ft_strdup((*tokens)->value);
77 *quoted = ((*tokens)->quote_type !=
QUOTE_NONE);
78 while ((*tokens)->connected && (*tokens)->next)
80 *tokens = (*tokens)->
next;
83 tmp = ft_strjoin(file, (*tokens)->value);
89 *tokens = (*tokens)->
next;
Parser entry point & sub parser prototypes.
char * join_connected_delim(t_token **tokens, int *quoted)
Join connected tokens in a single string.
static int is_redir(t_ast *node)
Check if an AST node is of redirection type.
t_ast * reverse_redir_chain(t_ast *node)
Reverse a redirection chain for left to right execution order.
t_ast_data data
cmd, redir or binary data
t_node_type type
To determine which union member to pick.
struct s_ast * cmd
Command subtree.
Lexer token (singly linked list)
struct s_token * next
Next token.