aboutsummaryrefslogtreecommitdiff
path: root/src/parse/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse/parse.c')
-rw-r--r--src/parse/parse.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/parse/parse.c b/src/parse/parse.c
index b2532ac..5633a23 100644
--- a/src/parse/parse.c
+++ b/src/parse/parse.c
@@ -6,7 +6,7 @@
/* By: nahaddac <nahaddac@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/06/17 18:09:04 by nahaddac #+# #+# */
-/* Updated: 2020/07/14 10:03:00 by charles ### ########.fr */
+/* Updated: 2020/07/14 11:48:42 by nahaddac ### ########.fr */
/* */
/* ************************************************************************** */
@@ -103,6 +103,7 @@ t_ret *parse_op(t_ftlst *input)
return ret_wrap_ast(left_ret->ast, input);
tag = ((t_token*)input->data)->tag;
+ /* les sep */
input = input->next;
right_ret = parse_op(input);
@@ -135,7 +136,6 @@ t_ret *parse_expr(t_ftlst *input)
tmp->ast = new_ast;
if (input == NULL)
return tmp;
-
// could reuse parse_redir instead
tag = ((t_token*)input->data)->tag;
while (tag & TAG_IS_REDIR)
@@ -172,8 +172,10 @@ t_ret *parse(t_ftlst *input)
return (NULL);
ret->ast = NULL;
ret->rest = NULL;
- /* if((ret->unexpected = error_syntax_simple(input))) */
- /* return (ret); */
+ ret->syntax_error = false;
+ // ret = error_syntax_simple(input, ret);
+ // if (ret->syntax_error == TRUE)
+ // return ret;
ret = parse_op(input);
return (ret);
}