/* ************************************************************************** */1/* */2/* ::: :::::::: */3/* lexer_utils.c :+: :+: :+: */4/* +:+ +:+ +:+ */5/* By: yabtaour <[email protected]> +#+ +:+ +#+ */6/* +#+#+#+#+#+ +#+ */7/* Created: 2022/07/26 18:16:49 by yabtaour #+# #+# */8/* Updated: 2022/07/26 18:16:50 by yabtaour ### ########.fr */9/* */10/* ************************************************************************** */1112#include "../minishell.h"1314int ft_is_parenth(char c)15{16if (c == '{' || c == '}'17|| c == '(' || c == ')')18return (1);19return (0);20}2122int ft_is_redirection(char c)23{24if (c == '<' || c == '>')25return (1);26return (0);27}2829int ft_is_word(char c)30{31if (c != '|' && c != '&' && !ft_is_redirection(c)32&& !ft_isspace(c) && c != ';' && !ft_is_parenth(c))33return (1);34return (0);35}363738