diff options
| author | Dominik Kaiser | 2024-07-09 19:23:17 +0200 |
|---|---|---|
| committer | Dominik Kaiser | 2024-07-09 19:23:17 +0200 |
| commit | 8f386bcd29425b96017c1e9b2cd1bbd670939563 (patch) | |
| tree | a8a3745009b91dcd38e5c64a2c726728ac8a9788 /include | |
| parent | 16ca09f57525cd9a4e7eb82ce70e4c1e0cb85a31 (diff) | |
| download | minishell-8f386bcd29425b96017c1e9b2cd1bbd670939563.tar.gz minishell-8f386bcd29425b96017c1e9b2cd1bbd670939563.zip | |
Adding working parsing
TODO: Refactoring
Diffstat (limited to 'include')
| -rw-r--r-- | include/ast.h | 10 | ||||
| -rw-r--r-- | include/token.h | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/include/ast.h b/include/ast.h index 6479272..b0ed996 100644 --- a/include/ast.h +++ b/include/ast.h @@ -6,7 +6,7 @@ /* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/06/27 11:48:27 by dkaiser #+# #+# */ -/* Updated: 2024/07/08 16:09:32 by dkaiser ### ########.fr */ +/* Updated: 2024/07/09 16:54:29 by dkaiser ### ########.fr */ /* */ /* ************************************************************************** */ @@ -34,10 +34,10 @@ typedef struct s_pipe enum e_redirection_type { - INPUT_FILE, - INPUT_LIMITER, - OUTPUT_OVERRIDE, - OUTPUT_APPEND + INPUT_FILE = 1, + INPUT_LIMITER = 2, + OUTPUT_OVERRIDE = 4, + OUTPUT_APPEND = 8 }; typedef struct s_redirection 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 |
