aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-10-09 16:13:50 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-10-09 16:13:50 +0200
commit00bce5ad1d5ac92d20617a9eb2647365bf87cab2 (patch)
treeaaad5cbb6cdb6372f5809d50cdc65b912695956f /include
parente8075fcf93873149593ccd141f99d65a4db40f4f (diff)
downloadminishell-00bce5ad1d5ac92d20617a9eb2647365bf87cab2.tar.gz
minishell-00bce5ad1d5ac92d20617a9eb2647365bf87cab2.tar.bz2
minishell-00bce5ad1d5ac92d20617a9eb2647365bf87cab2.zip
Splitting preprocessing, Added parsed error helper
Diffstat (limited to 'include')
-rw-r--r--include/eval.h4
-rw-r--r--include/parser.h5
2 files changed, 6 insertions, 3 deletions
diff --git a/include/eval.h b/include/eval.h
index e2f3c8b..6f54280 100644
--- a/include/eval.h
+++ b/include/eval.h
@@ -6,7 +6,7 @@
/* By: charles <charles@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/04/01 17:05:30 by charles #+# #+# */
-/* Updated: 2020/10/09 13:40:26 by cacharle ### ########.fr */
+/* Updated: 2020/10/09 16:12:05 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -63,7 +63,7 @@ int eval_cmd(int fds[2], t_env env, t_ast *ast);
*/
int eval_operation(int fds[2], t_env env, t_ast *ast);
-int eval_pipeline(int fds[2], t_env env, t_ast *ast);
+int eval_pipeline(t_env env, t_ast *ast);
/*
** parenthesis.c
diff --git a/include/parser.h b/include/parser.h
index 126ef8d..bd4e5b0 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/10/09 13:45:41 by cacharle ### ########.fr */
+/* Updated: 2020/10/09 16:02:40 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -112,6 +112,9 @@ typedef struct s_parsed
t_parsed *parsed_new(t_ast *ast, t_tok_lst *rest);
t_parsed *parsed_error(const char *format, ...);
+t_parsed *parsed_expected(void);
+t_parsed *parsed_unexpected(char *content);
+void parsed_destroy(t_parsed *parsed);
/*
** parse.c