|
|
|
@ -168,13 +168,19 @@ namespace Compiler
|
|
|
|
|
mExprParser.parseArguments (arguments, scanner, mCode, true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// for now skip buttons
|
|
|
|
|
SkipParser skip (getErrorHandler(), getContext());
|
|
|
|
|
scanner.scan (skip);
|
|
|
|
|
mName = name;
|
|
|
|
|
mButtons = 0;
|
|
|
|
|
|
|
|
|
|
Generator::message (mCode, mLiterals, name, 0);
|
|
|
|
|
mState = EndState;
|
|
|
|
|
return false;
|
|
|
|
|
mState = MessageButtonState;
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (mState==MessageButtonState || mState==MessageButtonCommaState)
|
|
|
|
|
{
|
|
|
|
|
Generator::pushString (mCode, mLiterals, name);
|
|
|
|
|
mState = MessageButtonState;
|
|
|
|
|
++mButtons;
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (mState==BeginState && mAllowExpression)
|
|
|
|
@ -360,6 +366,18 @@ namespace Compiler
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (code==Scanner::S_newline && mState==MessageButtonState)
|
|
|
|
|
{
|
|
|
|
|
Generator::message (mCode, mLiterals, mName, mButtons);
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (code==Scanner::S_comma && mState==MessageButtonState)
|
|
|
|
|
{
|
|
|
|
|
mState = MessageButtonCommaState;
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (mAllowExpression && mState==BeginState &&
|
|
|
|
|
(code==Scanner::S_open || code==Scanner::S_minus))
|
|
|
|
|
{
|
|
|
|
@ -378,4 +396,3 @@ namespace Compiler
|
|
|
|
|
mExplicit.clear();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|