Exemple #1
0
 public final TypeContext type() throws RecognitionException {
   TypeContext _localctx = new TypeContext(_ctx, getState());
   enterRule(_localctx, 4, RULE_type);
   int _la;
   try {
     enterOuterAlt(_localctx, 1);
     {
       setState(34);
       _la = _input.LA(1);
       if (!((((_la) & ~0x3f) == 0
           && ((1L << _la) & ((1L << K_FLOAT) | (1L << K_INT) | (1L << K_VOID))) != 0))) {
         _errHandler.recoverInline(this);
       } else {
         consume();
       }
     }
   } catch (RecognitionException re) {
     _localctx.exception = re;
     _errHandler.reportError(this, re);
     _errHandler.recover(this, re);
   } finally {
     exitRule();
   }
   return _localctx;
 }
Exemple #2
0
 public final TypeContext type() throws RecognitionException {
   TypeContext _localctx = new TypeContext(_ctx, getState());
   enterRule(_localctx, 8, RULE_type);
   try {
     setState(47);
     switch (_input.LA(1)) {
       case T__9:
         enterOuterAlt(_localctx, 1);
         {
           setState(41);
           match(T__9);
         }
         break;
       case ID:
         enterOuterAlt(_localctx, 2);
         {
           setState(42);
           match(ID);
         }
         break;
       case T__10:
         enterOuterAlt(_localctx, 3);
         {
           setState(43);
           match(T__10);
         }
         break;
       case T__11:
         enterOuterAlt(_localctx, 4);
         {
           setState(44);
           match(T__11);
         }
         break;
       case T__5:
         enterOuterAlt(_localctx, 5);
         {
           setState(45);
           match(T__5);
         }
         break;
       case T__8:
       case T__2:
         enterOuterAlt(_localctx, 6);
         {
           setState(46);
           choise();
         }
         break;
       default:
         throw new NoViableAltException(this);
     }
   } catch (RecognitionException re) {
     _localctx.exception = re;
     _errHandler.reportError(this, re);
     _errHandler.recover(this, re);
   } finally {
     exitRule();
   }
   return _localctx;
 }