/** \brief Lexer rule generated by ANTLR3 * * $ANTLR start POS_DIGIT * * Looks to match the characters the constitute the token POS_DIGIT * from the attached input stream. * * * \remark * - lexer->error == ANTLR3_TRUE if an exception was thrown. */ static ANTLR3_INLINE void mPOS_DIGIT(pbelle_sdpLexer ctx) { ANTLR3_UINT32 _type; // /Users/huyheo/Documents/Linphone/linphone-iphone/submodules/build/..//belle-sip/src/belle_sdp.g:317:20: ( '1' .. '9' ) // /Users/huyheo/Documents/Linphone/linphone-iphone/submodules/build/..//belle-sip/src/belle_sdp.g:317:32: '1' .. '9' { MATCHRANGE('1', '9'); if (HASEXCEPTION()) { goto rulePOS_DIGITEx; } } // This is where rules clean up and exit // goto rulePOS_DIGITEx; /* Prevent compiler warnings */ rulePOS_DIGITEx: ; }
/** \brief Lexer rule generated by ANTLR3 * * $ANTLR start INT * * Looks to match the characters the constitute the token INT * from the attached input stream. * * * \remark * - lexer->error == ANTLR3_TRUE if an exception was thrown. */ static ANTLR3_INLINE void mINT(pExprCppTreeLexer ctx) { ANTLR3_UINT32 _type; _type = INT; // D:\\message\\ExprCppTree.g:43:4: ( ( '~' )? ( '0' .. '9' )+ ) // D:\\message\\ExprCppTree.g:43:6: ( '~' )? ( '0' .. '9' )+ { // D:\\message\\ExprCppTree.g:43:6: ( '~' )? { int alt2=2; switch ( LA(1) ) { case '~': { alt2=1; } break; } switch (alt2) { case 1: // D:\\message\\ExprCppTree.g:43:6: '~' { MATCHC('~'); if (HASEXCEPTION()) { goto ruleINTEx; } } break; } } // D:\\message\\ExprCppTree.g:43:11: ( '0' .. '9' )+ { int cnt3=0; for (;;) { int alt3=2; switch ( LA(1) ) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': { alt3=1; } break; } switch (alt3) { case 1: // D:\\message\\ExprCppTree.g:43:11: '0' .. '9' { MATCHRANGE('0', '9'); if (HASEXCEPTION()) { goto ruleINTEx; } } break; default: if ( cnt3 >= 1 ) { goto loop3; } /* mismatchedSetEx() */ CONSTRUCTEX(); EXCEPTION->type = ANTLR3_EARLY_EXIT_EXCEPTION; EXCEPTION->name = (void *)ANTLR3_EARLY_EXIT_NAME; goto ruleINTEx; } cnt3++; } loop3: ; /* Jump to here if this rule does not match */ } } LEXSTATE->type = _type; // This is where rules clean up and exit // goto ruleINTEx; /* Prevent compiler warnings */ ruleINTEx: ; }