aboutsummaryrefslogtreecommitdiff
path: root/include/token.h
diff options
context:
space:
mode:
authorcuhlig2024-12-17 15:22:32 +0100
committerGitHub2024-12-17 15:22:32 +0100
commita93558047c6d04ca4181fa84229d82b09dd7def2 (patch)
treea0b67075c625731e1e1d526db46eb5dec81b5616 /include/token.h
parent8cbba6da72ddd04e358bdb893e700702f92adacd (diff)
parentae5512ea0d6d8be833ca3a9b39f93239109f45b4 (diff)
downloadminishell-a93558047c6d04ca4181fa84229d82b09dd7def2.tar.gz
minishell-a93558047c6d04ca4181fa84229d82b09dd7def2.zip
Merge branch 'main' into bugfix-tokenizer
Diffstat (limited to 'include/token.h')
-rw-r--r--include/token.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/include/token.h b/include/token.h
index 80ace03..7e2038a 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/11 13:46:22 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,7 +45,8 @@ 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,
char quote_check);
-#endif \ No newline at end of file
+#endif