This commit is contained in:
gazhonsepaskwa
2025-02-18 13:52:09 +01:00
parent dcb9bde568
commit f3bf429c07
3 changed files with 8 additions and 4 deletions

View File

@@ -25,9 +25,7 @@ int is_aop_operator(t_node *node)
int unexpected_token(t_node *node)
{
if ((!ft_strncmp(node->val, "&", 1) && ft_strncmp(node->val, "&&", 2))
|| !ft_strncmp(node->val, ";", 1) || !ft_strncmp(node->val, "[", 1)
|| !ft_strncmp(node->val, "]", 1) || !ft_strncmp(node->val, "{", 1)
|| !ft_strncmp(node->val, "}", 1))
|| !ft_strncmp(node->val, ";", 1))
return (1);
return (0);
}