mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Improve compiler messages
This commit is contained in:
parent
886c77bced
commit
17dce28705
9 changed files with 41 additions and 42 deletions
|
@ -99,7 +99,7 @@ namespace Compiler
|
|||
else if (t1=='f' || t2=='f')
|
||||
mOperands.push_back ('f');
|
||||
else
|
||||
throw std::logic_error ("failed to determine result operand type");
|
||||
throw std::logic_error ("Failed to determine result operand type");
|
||||
}
|
||||
|
||||
void ExprParser::pop()
|
||||
|
@ -158,7 +158,7 @@ namespace Compiler
|
|||
|
||||
default:
|
||||
|
||||
throw std::logic_error ("unknown operator");
|
||||
throw std::logic_error ("Unknown operator");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -287,7 +287,7 @@ namespace Compiler
|
|||
else
|
||||
{
|
||||
mExplicit.clear();
|
||||
getErrorHandler().warning ("Ignoring stray explicit reference", loc);
|
||||
getErrorHandler().warning ("Stray explicit reference", loc);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -430,7 +430,7 @@ namespace Compiler
|
|||
{
|
||||
if (!hasExplicit)
|
||||
{
|
||||
getErrorHandler().warning ("ignoring stray explicit reference", loc);
|
||||
getErrorHandler().warning ("Stray explicit reference", loc);
|
||||
mExplicit.clear();
|
||||
}
|
||||
|
||||
|
@ -735,13 +735,13 @@ namespace Compiler
|
|||
{
|
||||
if (mOperands.empty() && mOperators.empty())
|
||||
{
|
||||
getErrorHandler().error ("missing expression", mTokenLoc);
|
||||
getErrorHandler().error ("Missing expression", mTokenLoc);
|
||||
return 'l';
|
||||
}
|
||||
|
||||
if (mNextOperand || mOperands.empty())
|
||||
{
|
||||
getErrorHandler().error ("syntax error in expression", mTokenLoc);
|
||||
getErrorHandler().error ("Syntax error in expression", mTokenLoc);
|
||||
return 'l';
|
||||
}
|
||||
|
||||
|
@ -799,7 +799,7 @@ namespace Compiler
|
|||
++optionalCount;
|
||||
}
|
||||
else
|
||||
getErrorHandler().warning ("ignoring extra argument",
|
||||
getErrorHandler().warning ("Extra argument",
|
||||
stringParser.getTokenLoc());
|
||||
}
|
||||
else if (*iter=='X')
|
||||
|
@ -813,7 +813,7 @@ namespace Compiler
|
|||
if (parser.isEmpty())
|
||||
break;
|
||||
else
|
||||
getErrorHandler().warning("ignoring extra argument", parser.getTokenLoc());
|
||||
getErrorHandler().warning("Extra argument", parser.getTokenLoc());
|
||||
}
|
||||
else if (*iter=='z')
|
||||
{
|
||||
|
@ -825,7 +825,7 @@ namespace Compiler
|
|||
if (discardParser.isEmpty())
|
||||
break;
|
||||
else
|
||||
getErrorHandler().warning("ignoring extra argument", discardParser.getTokenLoc());
|
||||
getErrorHandler().warning("Extra argument", discardParser.getTokenLoc());
|
||||
}
|
||||
else if (*iter=='j')
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue