case '~':
case ',':
case '.':
+ case '!':
if (!lex_tokench(lex, ch) ||
!lex_endtoken(lex))
{
if (ch == '+' || ch == '-' || /* ++, --, +=, -= and -> as well! */
ch == '>' || ch == '<' || /* <<, >>, <=, >= */
- ch == '=' || /* == */
+ ch == '=' || ch == '!' || /* ==, != */
ch == '&' || ch == '|') /* &&, ||, &=, |= */
{
if (!lex_tokench(lex, ch))
return (lex->tok->ttype = TOKEN_OPERATOR);
}
+ /*
if (ch == '^' || ch == '~' || ch == '!')
{
if (!lex_tokench(lex, ch) ||
}
return (lex->tok->ttype = TOKEN_OPERATOR);
}
+ */
if (ch == '*' || ch == '/') /* *=, /= */
{