diff options
| author | Christopher Uhlig | 2024-10-17 14:22:47 +0200 |
|---|---|---|
| committer | Christopher Uhlig | 2024-10-17 14:22:47 +0200 |
| commit | 981d02c8544388e81abf1423c31578c50d019d28 (patch) | |
| tree | 195ea0964faa8abcf23712715111b2f21837e9d1 /include/token.h | |
| parent | 9b1ddf7b3491f26d8b3ba9daeca7174aede9c781 (diff) | |
| parent | 85d82207526e7220bd14bc96e5f8079ec781fc75 (diff) | |
| download | minishell-981d02c8544388e81abf1423c31578c50d019d28.tar.gz minishell-981d02c8544388e81abf1423c31578c50d019d28.zip | |
removed merch conflict
Diffstat (limited to 'include/token.h')
| -rw-r--r-- | include/token.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/include/token.h b/include/token.h index d7ff9f9..54a65f2 100644 --- a/include/token.h +++ b/include/token.h @@ -6,7 +6,7 @@ /* By: chuhlig <chuhlig@student.42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/06/27 13:27:18 by dkaiser #+# #+# */ -/* Updated: 2024/08/05 13:23:27 by chuhlig ### ########.fr */ +/* Updated: 2024/08/29 15:26:23 by dkaiser ### ########.fr */ /* */ /* ************************************************************************** */ @@ -17,10 +17,10 @@ enum e_token_type { - STRING_TOKEN, - PIPE_TOKEN, - REDIR_TOKEN, - NEWLINE_TOKEN + STRING_TOKEN = 1, + PIPE_TOKEN = 2, + REDIR_TOKEN = 4, + NEWLINE_TOKEN = 8 }; union u_token_content @@ -45,6 +45,9 @@ t_token *new_redir_token(int type, t_token *previous, t_token *next); void free_token(t_token *token); -void tokenizer(char *s, t_token **token_list); +void free_token_and_connect(t_token *token); +void free_tokens(t_token *tokens); +void tokenizer(char *s, t_token **token_list, + char quote_check); -#endif
\ No newline at end of file +#endif |
