protected unless_stmt ( ) : UnlessStatement | ||
Résultat | UnlessStatement |
protected UnlessStatement unless_stmt()
{
UnlessStatement us;
IToken u = null;
us = null;
Expression condition = null;
try { // for error handling
u = LT(1);
match(UNLESS);
condition=expression();
if (0==inputState.guessing)
{
us = new UnlessStatement(ToLexicalInfo(u));
us.Condition = condition;
}
compound_stmt(us.Block);
}
catch (RecognitionException ex)
{
if (0 == inputState.guessing)
{
reportError(ex, "unless_stmt");
recover(ex,tokenSet_82_);
}
else
{
throw ex;
}
}
return us;
}