Add support for unary +

- Other languages can do this, and carlcyber noticed ACC couldn't, so now
  it can.
This commit is contained in:
Randy Heit 2014-02-04 20:32:27 -06:00
parent f099d5e667
commit c6bc836ecb

View file

@ -3410,6 +3410,11 @@ static void ExprLevX(int level)
unaryMinus = TRUE;
TK_NextToken();
}
if(tk_Token == TK_PLUS)
{
// Completely ignore unary plus
TK_NextToken();
}
if(ConstantExpression == YES)
{
ConstExprFactor();