diff options
| author | nass1pro <nass1pro@gmail.com> | 2020-06-19 13:28:41 +0200 |
|---|---|---|
| committer | nass1pro <nass1pro@gmail.com> | 2020-06-19 13:28:41 +0200 |
| commit | c8091831c4ce1c4cf8703b18de22441aff191f44 (patch) | |
| tree | b30e542c9345135892f971d8e7566fd4cc8c64a4 /include/ast.h | |
| parent | 677ebe4c32fc7b7bb99f3abb48f7f6f1a428d102 (diff) | |
| download | minishell-c8091831c4ce1c4cf8703b18de22441aff191f44.tar.gz minishell-c8091831c4ce1c4cf8703b18de22441aff191f44.tar.bz2 minishell-c8091831c4ce1c4cf8703b18de22441aff191f44.zip | |
Update parser_error
Diffstat (limited to 'include/ast.h')
| -rw-r--r-- | include/ast.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/ast.h b/include/ast.h index 53221fa..fb1d059 100644 --- a/include/ast.h +++ b/include/ast.h @@ -6,7 +6,7 @@ /* By: charles <charles@student.42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/01 17:05:38 by charles #+# #+# */ -/* Updated: 2020/06/18 13:35:38 by charles ### ########.fr */ +/* Updated: 2020/06/19 13:15:30 by nahaddac ### ########.fr */ /* */ /* ************************************************************************** */ @@ -48,9 +48,9 @@ typedef struct s_op enum e_ast_tag { - AST_CMD, - AST_OP, - AST_OP_PARENT, + AST_CMD = 1 << 0, + AST_OP = 1 << 1, + AST_OP_PARENT = 1 << 2, }; /* @@ -70,6 +70,7 @@ typedef struct s_ast { t_op op; t_ftlst *cmd_argv; + struct s_ast *parent_ast; }; t_ftlst *redirs; } t_ast; |
