protected GotoStatement goto_stmt()
{
GotoStatement stmt;
IToken token = null;
IToken label = null;
stmt = null;
try { // for error handling
token = LT(1);
match(GOTO);
label = LT(1);
match(ID);
if (0==inputState.guessing)
{
stmt = new GotoStatement(ToLexicalInfo(token),
new ReferenceExpression(ToLexicalInfo(label), label.getText()));
}
}
catch (RecognitionException ex)
{
if (0 == inputState.guessing)
{
reportError(ex, "goto_stmt");
recover(ex,tokenSet_21_);
}
else
{
throw ex;
}
}
return stmt;
}