maxishell
Implementation of a shell for Linux-like systems
|
Go to the source code of this file.
Functions | |
t_ast * | parse_tokens (t_token **tokens, t_ms_data *data) |
t_ast * | create_pipe_node (t_token *next_token, t_token **tokens, t_ms_data *data, t_token *tmp) |
t_ast * | manage_pipe (t_token **tokens, t_ms_data *data) |
t_ast * | manage_commands (t_token **tokens, t_ms_data *data) |
int | cmd_arg_len (t_token *current) |
int cmd_arg_len | ( | t_token * | current | ) |
Definition at line 88 of file AST_utils.c.
References s_token::next, PHRASE, and s_token::type.
Referenced by manage_commands().
t_ast * create_pipe_node | ( | t_token * | next_token, |
t_token ** | tokens, | ||
t_ms_data * | data, | ||
t_token * | tmp | ||
) |
Definition at line 30 of file AST_utils.c.
References s_ast::args, s_token::data, ft_strdup(), s_ast::left, manage_pipe(), manage_redirs(), new_ast_node(), s_token::next, s_ast::right, s_token::type, and s_ast::type.
Referenced by manage_pipe().
Definition at line 72 of file AST_utils.c.
References s_ast::args, cmd_arg_len(), new_ast_node(), PHRASE, post_process_command_args(), set_command_args(), and s_ast::type.
Referenced by manage_redirs().
Definition at line 56 of file AST_utils.c.
References create_pipe_node(), manage_redirs(), s_token::next, PIPE, and s_token::type.
Referenced by create_pipe_node(), and parse_tokens().
Definition at line 23 of file AST_utils.c.
References manage_pipe().
Referenced by main_loop().