aboutsummaryrefslogtreecommitdiff
path: root/include/parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/parser.h')
-rw-r--r--include/parser.h25
1 files changed, 5 insertions, 20 deletions
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 <cacharle@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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