diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-08-27 18:47:16 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-08-27 18:47:16 +0200 |
| commit | a680cf09a3fa4b7c6adc38e4297ee5535172826b (patch) | |
| tree | 461c9110aadbc98ea2e8751ddb51c48d5c508304 /include/parser.h | |
| parent | b4002940ce1c1c4648b24f6bf942fc4e4ebab098 (diff) | |
| download | minishell-a680cf09a3fa4b7c6adc38e4297ee5535172826b.tar.gz minishell-a680cf09a3fa4b7c6adc38e4297ee5535172826b.tar.bz2 minishell-a680cf09a3fa4b7c6adc38e4297ee5535172826b.zip | |
Updated preprocessing, redir, ast to use t_tok_lst instead of t_ftlst
Diffstat (limited to 'include/parser.h')
| -rw-r--r-- | include/parser.h | 25 |
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 |
