25 return (
"minishell: syntax error: empty input\n");
27 return (
"minishell: syntax error near unexpected token `|'\n");
29 return (
"minishell: syntax error: missing command after pipe\n");
31 return (
"minishell: syntax error: missing filename "
32 "after redirection\n");
34 return (
"minishell: syntax error: redirection after pipe\n");
52 ft_putstr_fd((
char *)msg, 2);
Parser entry point & sub parser prototypes.
int print_syntax_error(t_syntax_error err)
Print an error message to STDERR.
static const char * get_error_msg(t_syntax_error err)
Convert an error code to the corresponding message.
int is_redirection(t_token_type type)
Check if a token type is a redirection operator.
t_syntax_error
Syntax error codes (for parser)
t_token_type
Token types produced by Lexer.