Exemple #1
0
    public ReturnStmtContext returnStmt()
    {
        ReturnStmtContext _localctx = new ReturnStmtContext(Context, State);

        EnterRule(_localctx, 16, RULE_returnStmt);
        try {
            EnterOuterAlt(_localctx, 1);
            {
                State = 62;
                Match(RETURN);
                State = 63;
                expr();
            }
        }
        catch (RecognitionException re) {
            _localctx.exception = re;
            ErrorHandler.ReportError(this, re);
            ErrorHandler.Recover(this, re);
        }
        finally {
            ExitRule();
        }
        return(_localctx);
    }
Exemple #2
0
	public ReturnStmtContext returnStmt() {
		ReturnStmtContext _localctx = new ReturnStmtContext(Context, State);
		EnterRule(_localctx, 158, RULE_returnStmt);
		try {
			EnterOuterAlt(_localctx, 1);
			{
			State = 1618; Match(RETURN);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			ErrorHandler.ReportError(this, re);
			ErrorHandler.Recover(this, re);
		}
		finally {
			ExitRule();
		}
		return _localctx;
	}