Exemplo n.º 1
0
    public MExpBinaryAdditiveOperatorContext mExpBinaryAdditiveOperator()
    {
        MExpBinaryAdditiveOperatorContext _localctx = new MExpBinaryAdditiveOperatorContext(Context, State);

        EnterRule(_localctx, 6, RULE_mExpBinaryAdditiveOperator);
        try {
            State = 44;
            ErrorHandler.Sync(this);
            switch (TokenStream.LA(1))
            {
            case T__3:
                _localctx = new MExpBinaryAdditiveOperator_AdditionContext(_localctx);
                EnterOuterAlt(_localctx, 1);
                {
                    State = 42; Match(T__3);
                }
                break;

            case T__2:
                _localctx = new MExpBinaryAdditiveOperator_SubtractionContext(_localctx);
                EnterOuterAlt(_localctx, 2);
                {
                    State = 43; Match(T__2);
                }
                break;

            default:
                throw new NoViableAltException(this);
            }
        }
        catch (RecognitionException re) {
            _localctx.exception = re;
            ErrorHandler.ReportError(this, re);
            ErrorHandler.Recover(this, re);
        }
        finally {
            ExitRule();
        }
        return(_localctx);
    }
Exemplo n.º 2
0
 public MExpBinaryAdditiveOperator_AdditionContext(MExpBinaryAdditiveOperatorContext context)
 {
     CopyFrom(context);
 }
Exemplo n.º 3
0
 public virtual void CopyFrom(MExpBinaryAdditiveOperatorContext context)
 {
     base.CopyFrom(context);
 }