/* single-character tokens */
switch (ch)
{
- case ';':
case '(':
+ if (!lex_tokench(lex, ch) ||
+ !lex_endtoken(lex))
+ {
+ return (lex->tok->ttype = TOKEN_FATAL);
+ }
+ if (lex->flags.noops)
+ return (lex->tok->ttype = ch);
+ else
+ return (lex->tok->ttype = TOKEN_OPERATOR);
case ')':
+ case ';':
case '{':
case '}':
case '[':
{ "--", 1, opid3('S','-','-'), ASSOC_LEFT, 16, OP_SUFFIX},
{ ".", 2, opid1('.'), ASSOC_LEFT, 15, 0 },
+ { "(", 0, opid1('('), ASSOC_LEFT, 15, OP_SUFFIX },
{ "!", 1, opid2('!', 'P'), ASSOC_RIGHT, 14, OP_PREFIX },
{ "~", 1, opid2('~', 'P'), ASSOC_RIGHT, 14, OP_PREFIX },