aboutsummaryrefslogtreecommitdiff
path: root/include/ast.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ast.h')
-rw-r--r--include/ast.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/include/ast.h b/include/ast.h
index bcb5e11..cbbe061 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/06/14 17:47:10 by charles ### ########.fr */
+/* Updated: 2020/06/17 16:34:45 by charles ### ########.fr */
/* */
/* ************************************************************************** */
@@ -26,36 +26,36 @@
struct s_ast;
/*
-** \brief Line struct
+** \brief Operation struct
** \param left AST to the left of separator
** \param right AST to the right of separator
** \param sep Type of separator
*/
-typedef struct s_line
+typedef struct s_op
{
struct s_ast *left;
struct s_ast *right;
enum e_token_tag sep;
-} t_line;
+} t_op;
/*
** \brief AST node tag (type)
** \param TAG_CMD Command AST node
-** \param TAG_LINE Line AST node
+** \param TAG_OP Operation AST node
*/
enum e_ast_tag
{
AST_CMD,
- AST_LINE,
+ AST_OP,
};
/*
** \brief AST node struct
** \param tag Node tag
-** \param line Line struct
+** \param op Operation struct
** \param cmd_argv Array of string tokens
** \param in STDIN redirection string tokens
** \param out STDOUT redirection string tokens
@@ -65,11 +65,11 @@ enum e_ast_tag
typedef struct s_ast
{
enum e_ast_tag tag;
- union
- {
- t_line line;
+ // union
+ // {
+ t_op op;
t_ftlst *cmd_argv;
- };
+ // };
t_ftlst *redirs;
} t_ast;