@Override public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { TokenStream input = (TokenStream)_input; int _s = s; switch ( s ) { case 0 : int LA42_70 = input.LA(1); int index42_70 = input.index(); input.rewind(); s = -1; if ( ((input.LA(1) == ANNOTATION_DIRECTIVE)) ) {s = 71;} else if ( (true) ) {s = 1;} input.seek(index42_70); if ( s>=0 ) return s; break; } NoViableAltException nvae = new NoViableAltException(getDescription(), 42, _s, input); error(nvae); throw nvae; } }
public final void number() throws RecognitionException { int number_StartIndex = input.index(); switch ( input.LA(1) ) { case INT: default: NoViableAltException nvae = new NoViableAltException("", 6, 0, input);
public final Expression.BinaryOperator binaryOp() throws RecognitionException { Expression.BinaryOperator op = null; int binaryOp_StartIndex = input.index(); t=(Token)input.LT(1); if ( input.LA(1)==31||input.LA(1)==33||(input.LA(1) >= 35 && input.LA(1) <= 36)||input.LA(1)==38||input.LA(1)==40||input.LA(1)==43||input.LA(1)==49||(input.LA(1) >= 53 && input.LA(1) <= 54)||input.LA(1)==56||(input.LA(1) >= 58 && input.LA(1) <= 61)||input.LA(1)==63||input.LA(1)==80||input.LA(1)==100||input.LA(1)==102 ) { input.consume(); state.errorRecovery=false; state.failed=false;
public final void literal() throws RecognitionException { int literal_StartIndex = input.index(); try { if ( state.backtracking>0 && alreadyParsedRule(input, 102) ) { return; } // src/main/resources/org/kie/workbench/common/services/datamodeller/parser/Java.g:1718:5: ( INTLITERAL | LONGLITERAL | FLOATLITERAL | DOUBLELITERAL | CHARLITERAL | STRINGLITERAL | TRUE | FALSE | NULL ) // src/main/resources/org/kie/workbench/common/services/datamodeller/parser/Java.g: { if ( input.LA(1)==CHARLITERAL||input.LA(1)==DOUBLELITERAL||input.LA(1)==FALSE||input.LA(1)==FLOATLITERAL||input.LA(1)==INTLITERAL||input.LA(1)==LONGLITERAL||input.LA(1)==NULL||input.LA(1)==STRINGLITERAL||input.LA(1)==TRUE ) { input.consume(); state.errorRecovery=false; state.failed=false; } else { if (state.backtracking>0) {state.failed=true; return;} MismatchedSetException mse = new MismatchedSetException(null,input); throw mse; } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { // do for sure before leaving if ( state.backtracking>0 ) { memoize(input, 102, literal_StartIndex); } } } // $ANTLR end "literal"
switch ( s ) { case 0 : int LA35_161 = input.LA(1); int index35_161 = input.index(); input.rewind(); s = -1; if ( (synpred6_IdentifiersParser()) ) {s = 177;} else if ( (true) ) {s = 8;} input.seek(index35_161); if ( s>=0 ) return s; break; int LA35_169 = input.LA(1); int index35_169 = input.index(); input.rewind(); s = -1; if ( (synpred7_IdentifiersParser()) ) {s = 178;} else if ( (true) ) {s = 85;} input.seek(index35_169); if ( s>=0 ) return s; break;
public final ObjCppParser.assignmentOp_return assignmentOp() throws RecognitionException { ObjCppParser.assignmentOp_return retval = new ObjCppParser.assignmentOp_return(); retval.start = input.LT(1); int assignmentOp_StartIndex = input.index(); t=(Token)input.LT(1); if ( input.LA(1)==34||input.LA(1)==37||input.LA(1)==39||input.LA(1)==42||input.LA(1)==45||input.LA(1)==50||input.LA(1)==55||input.LA(1)==57||input.LA(1)==62||input.LA(1)==81||input.LA(1)==101||input.LA(1)==104 ) { input.consume(); state.errorRecovery=false; state.failed=false; retval.stop = input.LT(-1);
public final void methodName() throws RecognitionException { int methodName_StartIndex = input.index(); try { if ( state.backtracking>0 && alreadyParsedRule(input, 127) ) { return ; } // src/main/resources/org/drools/semantics/java/parser/Java.g:1213:5: ( Identifier | 'insert' | 'update' | 'modify' | 'retract' ) // src/main/resources/org/drools/semantics/java/parser/Java.g: { if ( input.LA(1)==Identifier||(input.LA(1)>=88 && input.LA(1)<=91) ) { input.consume(); state.errorRecovery=false;state.failed=false; } else { if (state.backtracking>0) {state.failed=true; return ;} MismatchedSetException mse = new MismatchedSetException(null,input); throw mse; } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { if ( state.backtracking>0 ) { memoize(input, 127, methodName_StartIndex); } } return ; } // $ANTLR end "methodName"
public final void var() throws RecognitionException { int var_StartIndex = input.index(); switch ( input.LA(1) ) { case RELEVANCE: default: NoViableAltException nvae = new NoViableAltException("", 5, 0, input);
switch ( s ) { case 0 : int LA23_30 = input.LA(1); int index23_30 = input.index(); input.rewind(); s = -1; if ( (synpred4_FromClauseParser()) ) {s = 70;} else if ( (true) ) {s = 1;} input.seek(index23_30); if ( s>=0 ) return s; break; int LA23_31 = input.LA(1); int index23_31 = input.index(); input.rewind(); s = -1; if ( (synpred4_FromClauseParser()) ) {s = 70;} else if ( (true) ) {s = 1;} input.seek(index23_31); if ( s>=0 ) return s; break;
public final Expression.UnaryOperator unaryOp() throws RecognitionException { Expression.UnaryOperator op = null; int unaryOp_StartIndex = input.index(); t=(Token)input.LT(1); if ( input.LA(1)==30||input.LA(1)==36||input.LA(1)==38||input.LA(1)==41||(input.LA(1) >= 43 && input.LA(1) <= 44)||input.LA(1)==103 ) { input.consume(); state.errorRecovery=false; state.failed=false;
public final void attributeTarget() throws RecognitionException { int attributeTarget_StartIndex = input.index(); try { if ( state.backtracking>0 && alreadyParsedRule(input, 145) ) { return; } // fjord/compiler/Fsharp.g:913:3: ( Module | Type | Ident ) // fjord/compiler/Fsharp.g: { if ( input.LA(1)==Ident||input.LA(1)==Module||input.LA(1)==Type ) { input.consume(); state.errorRecovery=false; state.failed=false; } else { if (state.backtracking>0) {state.failed=true; return;} MismatchedSetException mse = new MismatchedSetException(null,input); throw mse; } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { // do for sure before leaving if ( state.backtracking>0 ) { memoize(input, 145, attributeTarget_StartIndex); } } } // $ANTLR end "attributeTarget"
public final void cond() throws RecognitionException { int cond_StartIndex = input.index(); switch ( input.LA(1) ) { case 26: default: NoViableAltException nvae = new NoViableAltException("", 4, 0, input);
switch ( s ) { case 0 : int LA20_30 = input.LA(1); int index20_30 = input.index(); input.rewind(); s = -1; if ( (synpred3_FromClauseParser()) ) {s = 70;} else if ( (true) ) {s = 1;} input.seek(index20_30); if ( s>=0 ) return s; break; int LA20_31 = input.LA(1); int index20_31 = input.index(); input.rewind(); s = -1; if ( (synpred3_FromClauseParser()) ) {s = 70;} else if ( (true) ) {s = 1;} input.seek(index20_31); if ( s>=0 ) return s; break;
public final RParser.comp_operator_return comp_operator() throws RecognitionException { RParser.comp_operator_return retval = new RParser.comp_operator_return(); retval.start = input.LT(1); int comp_operator_StartIndex = input.index(); set174=input.LT(1); if ( input.LA(1)==EQ||(input.LA(1) >= GE && input.LA(1) <= GT)||input.LA(1)==LE||input.LA(1)==LT||input.LA(1)==NE ) { input.consume(); if ( state.backtracking==0 ) adaptor.addChild(root_0, (CommonTree)adaptor.create(set174)); state.errorRecovery=false; retval.stop = input.LT(-1);
public final void integerLiteral() throws RecognitionException { int integerLiteral_StartIndex = input.index(); try { if ( state.backtracking>0 && alreadyParsedRule(input, 62) ) { return ; } // src/main/resources/org/drools/semantics/java/parser/Java.g:591:5: ( HexLiteral | OctalLiteral | DecimalLiteral ) // src/main/resources/org/drools/semantics/java/parser/Java.g: { if ( (input.LA(1)>=HexLiteral && input.LA(1)<=DecimalLiteral) ) { input.consume(); state.errorRecovery=false;state.failed=false; } else { if (state.backtracking>0) {state.failed=true; return ;} MismatchedSetException mse = new MismatchedSetException(null,input); throw mse; } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { if ( state.backtracking>0 ) { memoize(input, 62, integerLiteral_StartIndex); } } return ; } // $ANTLR end "integerLiteral"
public final void factor() throws RecognitionException { int factor_StartIndex = input.index(); switch ( input.LA(1) ) { case DBL: case INT: default: NoViableAltException nvae = new NoViableAltException("", 3, 0, input);
switch ( s ) { case 0 : int LA19_30 = input.LA(1); int index19_30 = input.index(); input.rewind(); s = -1; if ( (synpred3_FromClauseParser()) ) {s = 68;} else if ( (true) ) {s = 1;} input.seek(index19_30); if ( s>=0 ) return s; break; int LA19_31 = input.LA(1); int index19_31 = input.index(); input.rewind(); s = -1; if ( (synpred3_FromClauseParser()) ) {s = 68;} else if ( (true) ) {s = 1;} input.seek(index19_31); if ( s>=0 ) return s; break;