token_type_assign, /* = += -= *= /= %= <<= >>= &= |= ^= */
token_type_return, /* return */
token_type_plus, /* + */
- token_type_arithmetic_operator, /* - * / % << >> & | ^ */
+ token_type_arithmetic_operator, /* - * / % << >> & | ^ ~ */
token_type_equality_test_operator, /* == < > >= <= != */
token_type_logic_operator, /* ! && || */
token_type_comma, /* , */
return;
}
+ case '~':
+ tp->type = last_token_type = token_type_arithmetic_operator;
+ return;
+
case '=':
{
int c2 = phase2_getc ();