예제 #1
0
        public OperacionContext operacion()
        {
            OperacionContext _localctx = new OperacionContext(Context, State);

            EnterRule(_localctx, 18, RULE_operacion);
            int _la;

            try {
                EnterOuterAlt(_localctx, 1);
                {
                    State = 83;
                    _la   = TokenStream.LA(1);
                    if (!((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << SUMA) | (1L << MENOS) | (1L << MULT) | (1L << DIV) | (1L << MOD))) != 0)))
                    {
                        ErrorHandler.RecoverInline(this);
                    }
                    else
                    {
                        ErrorHandler.ReportMatch(this);
                        Consume();
                    }
                }
            }
            catch (RecognitionException re) {
                _localctx.exception = re;
                ErrorHandler.ReportError(this, re);
                ErrorHandler.Recover(this, re);
            }
            finally {
                ExitRule();
            }
            return(_localctx);
        }
예제 #2
0
 public OperacionService(OperacionContext operacionContext)
 {
     _operacionContext = operacionContext;
 }