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 --- include/parser.h | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) (limited to 'include/parser.h') diff --git a/include/parser.h b/include/parser.h index d228dca..7103d0b 100644 --- a/include/parser.h +++ b/include/parser.h @@ -6,7 +6,7 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/28 09:00:00 by cacharle #+# #+# */ -/* Updated: 2020/06/18 16:34:18 by nahaddac ### ########.fr */ +/* Updated: 2020/08/27 18:40:55 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -38,24 +38,9 @@ ** parse.c */ - -t_ret *parse(t_ftlst *input); -t_ret *parse_op(t_ftlst *input); -t_ret *parse_expr(t_ftlst *input); -t_ret *parse_cmd(t_ftlst *input); - -// utils -t_ret *ret_wrap_ast(t_ast *ast, t_ftlst *rest); -t_ftlst *push_token(t_ftlst **tokens, t_token *pushed); - - - -t_ast *push_cmd(t_ast *ast, t_ftlst *ret); -t_ast *push_redir(t_ast *ast, t_ftlst *rest); -int parse_cmd_str_true_false(enum e_tok tag); -int parse_redir_true_false(enum e_tok tag); - -// error -t_token *error_syntax_simple(t_ftlst *in); +t_parsed *parse(t_tok_lst *input); +t_parsed *parse_op(t_tok_lst *input); +t_parsed *parse_expr(t_tok_lst *input); +t_parsed *parse_cmd(t_tok_lst *input); #endif -- cgit