2025-02-17 16:14:14 +01:00
|
|
|
/* ************************************************************************** */
|
|
|
|
|
/* */
|
|
|
|
|
/* ::: :::::::: */
|
|
|
|
|
/* operator_start.c :+: :+: :+: */
|
|
|
|
|
/* +:+ +:+ +:+ */
|
2025-04-30 11:26:59 +02:00
|
|
|
/* By: kcolin <kcolin@42.fr> +#+ +:+ +#+ */
|
2025-02-17 16:14:14 +01:00
|
|
|
/* +#+#+#+#+#+ +#+ */
|
2025-04-30 11:26:59 +02:00
|
|
|
/* Created: 2025/02/17 16:21:03 by kcolin #+# #+# */
|
2025-02-19 15:54:38 +01:00
|
|
|
/* Updated: 2025/02/18 17:53:13 by jguelen ### ########.fr */
|
2025-02-17 16:14:14 +01:00
|
|
|
/* */
|
|
|
|
|
/* ************************************************************************** */
|
|
|
|
|
|
|
|
|
|
#include "libft.h"
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
** Is the character the start of an operator?
|
|
|
|
|
*/
|
|
|
|
|
bool is_operator_start(char c)
|
|
|
|
|
{
|
|
|
|
|
if (ft_strchr("<>|&()", c) != NULL)
|
|
|
|
|
return (true);
|
|
|
|
|
else
|
|
|
|
|
return (false);
|
|
|
|
|
}
|