aboutsummaryrefslogtreecommitdiff
path: root/include/ast.h
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-06-09 10:53:57 +0200
committerCharles <sircharlesaze@gmail.com>2020-06-09 10:53:57 +0200
commitc16cf5fcc4a421608bf3c291ef84a79b7dbe7591 (patch)
tree2c7b814f7e9eee40d34a6cf26b4948c39fecfc4c /include/ast.h
parent9dca7dc98e46d5b29e236f2970072ffaf582e13e (diff)
parent9fabc25a980550afc6337fd729632462f2680daa (diff)
downloadminishell-c16cf5fcc4a421608bf3c291ef84a79b7dbe7591.tar.gz
minishell-c16cf5fcc4a421608bf3c291ef84a79b7dbe7591.tar.bz2
minishell-c16cf5fcc4a421608bf3c291ef84a79b7dbe7591.zip
Merge branch 'eval'
Diffstat (limited to 'include/ast.h')
-rw-r--r--include/ast.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/include/ast.h b/include/ast.h
index 0d14779..b725c8b 100644
--- a/include/ast.h
+++ b/include/ast.h
@@ -6,7 +6,7 @@
/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/04/01 17:05:38 by charles #+# #+# */
-/* Updated: 2020/04/01 17:52:43 by charles ### ########.fr */
+/* Updated: 2020/05/04 11:59:43 by charles ### ########.fr */
/* */
/* ************************************************************************** */
@@ -25,10 +25,10 @@
/*
** \brief Separator type
-** \param SEP_END Regular command end `;`
-** \param SEP_PIPE Pipe output of left to right `|`
-** \param SEP_AND Execute right if left status == 0 `&&`
-** \param SEP_OR Execute right if left status != 0 `||`
+** \param SEP_END `;` Regular command end
+** \param SEP_PIPE `|` Pipe output of left to right
+** \param SEP_AND `&&` Execute right if left status == 0
+** \param SEP_OR `||` Execute right if left status != 0
*/
typedef enum e_sep
@@ -87,9 +87,8 @@ typedef enum e_ast_tag
/*
** \brief AST node struct
** \param tag Node tag
-** \param data Union containning possible node data
-** \param data::cmd Command struct
-** \param data::line Line struct
+** \param cmd Command struct
+** \param line Line struct
*/
typedef struct s_ast
@@ -99,7 +98,7 @@ typedef struct s_ast
{
t_line line;
t_cmd cmd;
- } data;
+ } ;
} t_ast;
t_ast *ast_new(t_ast_tag tag, void *data);