PSHDLLang.java 文件源码

java
阅读 30 收藏 0 点赞 0 评论 0

项目:org.pshdl 作者:
public final PsCompoundStatementContext psCompoundStatement() throws RecognitionException {
    final PsCompoundStatementContext _localctx = new PsCompoundStatementContext(_ctx, getState());
    enterRule(_localctx, 78, RULE_psCompoundStatement);
    try {
        setState(650);
        _errHandler.sync(this);
        switch (_input.LA(1)) {
        case IF:
            enterOuterAlt(_localctx, 1); {
            setState(647);
            psIfStatement();
        }
            break;
        case FOR:
            enterOuterAlt(_localctx, 2); {
            setState(648);
            psForStatement();
        }
            break;
        case SWITCH:
            enterOuterAlt(_localctx, 3); {
            setState(649);
            psSwitchStatement();
        }
            break;
        default:
            throw new NoViableAltException(this);
        }
    } catch (final RecognitionException re) {
        _localctx.exception = re;
        _errHandler.reportError(this, re);
        _errHandler.recover(this, re);
    } finally {
        exitRule();
    }
    return _localctx;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号