42-archive/42sh/src/lexer/isrw_delim.c
2017-03-24 15:18:17 +01:00

26 lines
1.3 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* isrw_delim.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ariard <ariard@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/03/20 19:12:50 by ariard #+# #+# */
/* Updated: 2017/03/24 14:49:17 by ariard ### ########.fr */
/* */
/* ************************************************************************** */
#include "minishell.h"
int isrw_delim(t_type type)
{
return (type == TK_NEWLINE || type == TK_AMP
|| type == TK_SEMI || type == TK_PIPE
|| type == TK_WHILE || type == TK_UNTIL
|| type == TK_DO || type == TK_IF
|| type == TK_THEN || type == TK_RBRACE
|| type == TK_ELIF || type == TK_ELSE
|| type == TK_DSEMI || type == TK_PAREN_CLOSE
|| type == TK_PAREN_OPEN || type == TK_LBRACE
|| type == TK_IN || type == 0);
}