aboutsummaryrefslogtreecommitdiff
path: root/include/token.h
diff options
context:
space:
mode:
authorDominik Kaiser2024-07-09 19:23:17 +0200
committerDominik Kaiser2024-07-09 19:23:17 +0200
commit8f386bcd29425b96017c1e9b2cd1bbd670939563 (patch)
treea8a3745009b91dcd38e5c64a2c726728ac8a9788 /include/token.h
parent16ca09f57525cd9a4e7eb82ce70e4c1e0cb85a31 (diff)
downloadminishell-8f386bcd29425b96017c1e9b2cd1bbd670939563.tar.gz
minishell-8f386bcd29425b96017c1e9b2cd1bbd670939563.zip
Adding working parsing
TODO: Refactoring
Diffstat (limited to 'include/token.h')
-rw-r--r--include/token.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/token.h b/include/token.h
index 32b042d..d61195d 100644
--- a/include/token.h
+++ b/include/token.h
@@ -6,7 +6,7 @@
/* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/27 13:27:18 by dkaiser #+# #+# */
-/* Updated: 2024/07/08 14:48:57 by dkaiser ### ########.fr */
+/* Updated: 2024/07/09 18:38:50 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