From b1cea511d13775425ee38e70c43e8a81f96b888e Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Fri, 28 Aug 2020 10:27:52 +0200 Subject: Cleaning parser --- include/parser.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'include/parser.h') diff --git a/include/parser.h b/include/parser.h index 061d8f2..ff644ed 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/08/27 20:38:13 by charles ### ########.fr */ +/* Updated: 2020/08/28 10:06:44 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -102,7 +102,11 @@ void ast_destroy(t_ast *ast); typedef struct s_parsed { bool syntax_error; - t_ast *ast; + union + { + t_ast *ast; + t_tok_lst *redir; // more general + }; t_tok_lst *rest; } t_parsed; -- cgit