the redire can be everywhere

This commit is contained in:
gazhonsepaskwa
2025-02-05 09:44:43 +01:00
parent 0a3a2cecc0
commit 8834742c1d
7 changed files with 286 additions and 242 deletions

View File

@@ -65,7 +65,18 @@ t_ast_n *get_ast(t_msh *msh, t_node *lst);
t_nodell *cutll(t_node *lst, t_node *expected, size_t limiter);
t_node *get_top_token(t_node *lst, t_state *state);
// env TMP
char **init_env(char **envp);
// recurce
t_ast_n *create_ast_n(t_node *lst, t_ast_n *parent, t_msh *msh);
// redir
t_redir get_redir(t_node *node);
void create_redir(t_node *cpy, t_ast_n *self);
// cmd
void create_cmd(t_ast_n *self, t_node *lst);
// subsh
void create_subsh(t_ast_n *parent, t_node *lst, t_msh *msh);
// pipeline
void create_pline(t_ast_n *self, t_node *lst, t_node *token, t_msh *msh);
// and_or
void create_and_or(t_ast_n *parrent, t_node *lst, t_node *token, t_msh *msh);
#endif