aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authornass1pro <nass1pro@gmail.com>2020-06-18 13:19:21 +0200
committernass1pro <nass1pro@gmail.com>2020-06-18 13:19:21 +0200
commit70459a3ab97b13df9bf829e29ed91becfba1ea03 (patch)
tree4f5a47bb60027e35227565e22a3e330b9c6c9c20 /include
parent1f0fde016765d33dc43c3c37d654be28f11c758e (diff)
downloadminishell-70459a3ab97b13df9bf829e29ed91becfba1ea03.tar.gz
minishell-70459a3ab97b13df9bf829e29ed91becfba1ea03.tar.bz2
minishell-70459a3ab97b13df9bf829e29ed91becfba1ea03.zip
Change parse
Diffstat (limited to 'include')
-rw-r--r--include/parser.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/include/parser.h b/include/parser.h
index bc1e549..0dfeb18 100644
--- a/include/parser.h
+++ b/include/parser.h
@@ -6,7 +6,7 @@
/* By: cacharle <cacharle@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/28 09:00:00 by cacharle #+# #+# */
-/* Updated: 2020/06/17 18:03:33 by nahaddac ### ########.fr */
+/* Updated: 2020/06/18 12:40:22 by nahaddac ### ########.fr */
/* */
/* ************************************************************************** */
@@ -37,11 +37,20 @@
** parse.c
*/
+
t_ret *parse(t_ftlst *input);
-t_ret *parse_c(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_token_tag tag);
int parse_redir_true_false(enum e_token_tag tag);