diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/ast.h | 1 | ||||
| -rw-r--r-- | include/lexer.h | 2 | ||||
| -rw-r--r-- | include/parser.h | 11 |
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 |
