maxishell
Implementation of a shell for Linux-like systems
|
Go to the source code of this file.
Functions | |
t_token * | tokenise (char *str) |
char * | handle_special_chars (char *str, t_token **tokens) |
t_token * | new_token (char *value, t_token_type type) |
void | append_token (t_token **tokens, t_token *new_token) |
char * | handle_phrase (char *str, t_token **tokens) |
Definition at line 85 of file tokeniser.c.
References new_token(), and s_token::next.
Referenced by append_word_if_valid(), and handle_special_chars().
char * handle_phrase | ( | char * | str, |
t_token ** | tokens | ||
) |
Definition at line 100 of file tokeniser.c.
References append_word_if_valid(), and ft_strchr().
Referenced by tokenise().
char * handle_special_chars | ( | char * | str, |
t_token ** | tokens | ||
) |
Definition at line 39 of file tokeniser.c.
References append_token(), new_token(), PIPE, REDIR_APPEND, REDIR_HEREDOC, REDIR_IN, and REDIR_OUT.
Referenced by tokenise().
t_token * new_token | ( | char * | value, |
t_token_type | type | ||
) |
Definition at line 67 of file tokeniser.c.
References s_token::data, ft_strdup(), s_token::next, and s_token::type.
Referenced by append_token(), append_word_if_valid(), finalize_token(), handle_special_chars(), and process_single_token().
t_token * tokenise | ( | char * | str | ) |
Definition at line 22 of file tokeniser.c.
References ft_strchr(), handle_phrase(), and handle_special_chars().
Referenced by main_loop().