aboutsummaryrefslogtreecommitdiff
path: root/src/parser.c
diff options
context:
space:
mode:
authorDominik Kaiser2024-07-09 12:56:09 +0200
committerDominik Kaiser2024-07-09 12:56:09 +0200
commit16ca09f57525cd9a4e7eb82ce70e4c1e0cb85a31 (patch)
treed8f77424f685607ce65bd06e478d8f298f9c0ef9 /src/parser.c
parent389f7c91f0ebd59c80b457fce63ad383dfd27f85 (diff)
downloadminishell-16ca09f57525cd9a4e7eb82ce70e4c1e0cb85a31.tar.gz
minishell-16ca09f57525cd9a4e7eb82ce70e4c1e0cb85a31.zip
Remove redundant funcs and add parse funcs to header and Makefile
Diffstat (limited to 'src/parser.c')
-rw-r--r--src/parser.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/parser.c b/src/parser.c
index 5bf82f6..66c6785 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -6,7 +6,7 @@
/* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/29 15:53:29 by dkaiser #+# #+# */
-/* Updated: 2024/07/08 16:11:07 by dkaiser ### ########.fr */
+/* Updated: 2024/07/09 11:38:12 by dkaiser ### ########.fr */
/* */
/* ************************************************************************** */
@@ -16,7 +16,6 @@ static t_token *find_token_by_type(t_token *tokens, int type);
t_token *split_at_first(t_token **tokens, int type);
static t_node *parse_statement(t_token *tokens);
-static t_node *parse_cmd(t_token *tokens);
t_list *parse(t_token *tokens)
{
@@ -64,18 +63,6 @@ static t_node *parse_statement(t_token *tokens)
}
}
-static t_node *parse_cmd(t_token *tokens)
-{
- char **args;
- t_assign **assigns;
- t_redirection **redirs;
-
- redirs = collect_redirs(&tokens);
- assigns = collect_assigns(&tokens);
- args = collect_args(&tokens);
- return (new_cmd_node(args, assigns, redirs));
-}
-
t_token *split_at_first(t_token **tokens, int type)
{
t_token *split;