aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-06-15 13:12:34 +0200
committerCharles <sircharlesaze@gmail.com>2020-06-15 13:12:34 +0200
commitb8623ff168880845c745da62f7e9a840f0541809 (patch)
tree23ca8f41c6bdeb5f4fb3a229ee03a7f76c931eb0 /include
parent11a719bab26b3ccccbd219decab2d0cf77021004 (diff)
parenta7dae7d30b7087bcd9972792a2ee1248e081cfce (diff)
downloadminishell-b8623ff168880845c745da62f7e9a840f0541809.tar.gz
minishell-b8623ff168880845c745da62f7e9a840f0541809.tar.bz2
minishell-b8623ff168880845c745da62f7e9a840f0541809.zip
Merge branch 'parser'
Diffstat (limited to 'include')
-rw-r--r--include/ast.h1
-rw-r--r--include/lexer.h2
-rw-r--r--include/parser.h11
3 files changed, 7 insertions, 7 deletions
diff --git a/include/ast.h b/include/ast.h
index c508bd9..bcb5e11 100644
--- a/include/ast.h
+++ b/include/ast.h
@@ -32,6 +32,7 @@ struct s_ast;
** \param sep Type of separator
*/
+
typedef struct s_line
{
struct s_ast *left;
diff --git a/include/lexer.h b/include/lexer.h
index 3acffb0..5886035 100644
--- a/include/lexer.h
+++ b/include/lexer.h
@@ -23,7 +23,7 @@ enum e_token_tag
TAG_STICK = 1 << 12,
TAG_IS_STR = TAG_STR | TAG_STR_SINGLE | TAG_STR_DOUBLE,
- TAG_IS_REDIR = TAG_REDIR_IN | TAG_REDIR_OUT | TAG_REDIR_APPEND,
+ TAG_IS_REDIR = TAG_REDIR_IN | TAG_REDIR_OUT | TAG_REDIR_APPEND,
};
typedef struct
diff --git a/include/parser.h b/include/parser.h
index 80d039b..2e6bae1 100644
--- a/include/parser.h
+++ b/include/parser.h
@@ -34,15 +34,14 @@
*/
/*
-** lexer.c
-*/
-
-// char **lexer(char *input);
-
-/*
** parse.c
*/
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