From a680cf09a3fa4b7c6adc38e4297ee5535172826b Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Thu, 27 Aug 2020 18:47:16 +0200 Subject: Updated preprocessing, redir, ast to use t_tok_lst instead of t_ftlst --- src/parse/cmd_parse.c | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 src/parse/cmd_parse.c (limited to 'src/parse/cmd_parse.c') diff --git a/src/parse/cmd_parse.c b/src/parse/cmd_parse.c deleted file mode 100644 index bb68dac..0000000 --- a/src/parse/cmd_parse.c +++ /dev/null @@ -1,27 +0,0 @@ - - -#include "parser.h" - -int parse_cmd_str_true_false(enum e_tok tag) -{ - if (tag & TAG_STR || tag & TAG_STR_DOUBLE || tag & TAG_STR_SINGLE) - return (1); - return(0); -} - -t_ast *push_cmd(t_ast *ast, t_ftlst *rest) -{ - t_ftlst *new; - - if (ast == NULL) - { - ast = ast_new(AST_CMD); - ast->cmd_argv = ft_lstnew((t_token *)rest->data); - } - else - { - new = ft_lstnew((t_token *)rest->data); - ft_lstpush_back(&ast->cmd_argv, new); - } - return (ast); -} -- cgit