From b5710182b87b17c14cabb5f178f0516ff7676177 Mon Sep 17 00:00:00 2001 From: nass1pro Date: Sun, 14 Jun 2020 15:52:25 +0200 Subject: Added parse cmd draft --- include/parser.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'include/parser.h') diff --git a/include/parser.h b/include/parser.h index 80d039b..c81abee 100644 --- a/include/parser.h +++ b/include/parser.h @@ -34,15 +34,16 @@ */ /* -** lexer.c +** parse.c */ -// char **lexer(char *input); +t_ret *parse(t_ftlst *input); +t_ast *parse_cmd(t_ast *ast, t_ftlst *ret); + /* -** parse.c +** cmd_parse.c */ - -t_ret *parse(t_ftlst *input); +int parse_cmd_str_true_fale(enum e_token_tag tag); #endif -- cgit From 72ee131562574c4a6cb69800cdd81268b52ace84 Mon Sep 17 00:00:00 2001 From: nass1pro Date: Sun, 14 Jun 2020 17:31:01 +0200 Subject: Change file cmd --- include/parser.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'include/parser.h') diff --git a/include/parser.h b/include/parser.h index c81abee..099d4aa 100644 --- a/include/parser.h +++ b/include/parser.h @@ -40,10 +40,6 @@ t_ret *parse(t_ftlst *input); t_ast *parse_cmd(t_ast *ast, t_ftlst *ret); - -/* -** cmd_parse.c -*/ -int parse_cmd_str_true_fale(enum e_token_tag tag); +int parse_cmd_str_true_false(enum e_token_tag tag); #endif -- cgit From a7dae7d30b7087bcd9972792a2ee1248e081cfce Mon Sep 17 00:00:00 2001 From: nass1pro Date: Mon, 15 Jun 2020 13:00:24 +0200 Subject: ADD redir_parse draft --- include/parser.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/parser.h') diff --git a/include/parser.h b/include/parser.h index 099d4aa..2e6bae1 100644 --- a/include/parser.h +++ b/include/parser.h @@ -39,7 +39,9 @@ t_ret *parse(t_ftlst *input); t_ast *parse_cmd(t_ast *ast, t_ftlst *ret); +t_ast *parse_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); #endif -- cgit