protected void noViableAlt(int s, IntStream input) throws NoViableAltException { if (recognizer.state.backtracking>0) { recognizer.state.failed=true; return; } NoViableAltException nvae = new NoViableAltException(getDescription(), decisionNumber, s, input); error(nvae); throw nvae; }
" state "+s+" is special state "+specialState); s = specialStateTransition(specialState,input); if ( debug ) { System.err.println("DFA "+decisionNumber+ noViableAlt(s,input); return 0; noViableAlt(s,input); return 0; noViableAlt(s,input); return 0;
@Override protected void error(NoViableAltException nvae) { if (nvae.token == Token.EOF_TOKEN) { int lookAheadAddOn = getRecognizer().lookAheadAddOn; int lookAhead = ((XtextTokenStream)nvae.input).getCurrentLookAhead(); if ((lookAhead >= lookAheadAddOn && lookAheadAddOn > 0) || (lookAhead == 0 && lookAheadAddOn > 0) || lookAhead == -1) getRecognizer().failedPredicateAtEOF = true; } super.error(nvae); }
@Override public int predict(IntStream input) throws RecognitionException { try { getRecognizer().beginDFAPrediction(); return super.predict(input); } finally { getRecognizer().endDFAPrediction(); } }
" state "+s+" is special state "+specialState); s = specialStateTransition(specialState,input); if ( debug ) { System.err.println("DFA "+decisionNumber+ noViableAlt(s,input); return 0; noViableAlt(s,input); return 0; noViableAlt(s,input); return 0;
/** * @since 2.1 */ @Override protected void error(NoViableAltException nvae) { if (nvae.token == Token.EOF_TOKEN) { int lookAheadAddOn = getRecognizer().lookAheadAddOn; int lookAhead = ((XtextTokenStream)nvae.input).getCurrentLookAhead(); if ((lookAhead >= lookAheadAddOn && lookAheadAddOn > 0) || (lookAhead == 0 && lookAheadAddOn > 0) || lookAhead == -1) getRecognizer().failedPredicateAtEOF = true; } super.error(nvae); }
@Override public int predict(IntStream input) throws RecognitionException { try { getRecognizer().beginDFAPrediction(); return super.predict(input); } finally { getRecognizer().endDFAPrediction(); } }
protected void noViableAlt(int s, IntStream input) throws NoViableAltException { if (recognizer.state.backtracking>0) { recognizer.state.failed=true; return; } NoViableAltException nvae = new NoViableAltException(getDescription(), decisionNumber, s, input); error(nvae); throw nvae; }
" state "+s+" is special state "+specialState); s = specialStateTransition(specialState,input); if ( debug ) { System.err.println("DFA "+decisionNumber+ noViableAlt(s,input); return 0; noViableAlt(s,input); return 0; noViableAlt(s,input); return 0;
protected void noViableAlt(int s, IntStream input) throws NoViableAltException { if (recognizer.state.backtracking>0) { recognizer.state.failed=true; return; } NoViableAltException nvae = new NoViableAltException(getDescription(), decisionNumber, s, input); error(nvae); throw nvae; }
" state "+s+" is special state "+specialState); s = specialStateTransition(specialState,input); if ( debug ) { System.err.println("DFA "+decisionNumber+ noViableAlt(s,input); return 0; noViableAlt(s,input); return 0; noViableAlt(s,input); return 0;
protected void noViableAlt(int s, IntStream input) throws NoViableAltException { if (recognizer.state.backtracking>0) { recognizer.state.failed=true; return; } NoViableAltException nvae = new NoViableAltException(getDescription(), decisionNumber, s, input); error(nvae); throw nvae; }
" state "+s+" is special state "+specialState); s = specialStateTransition(specialState,input); if ( debug ) { System.err.println("DFA "+decisionNumber+ noViableAlt(s,input); return 0; noViableAlt(s,input); return 0; noViableAlt(s,input); return 0;
protected void noViableAlt(int s, IntStream input) throws NoViableAltException { if (recognizer.state.backtracking>0) { recognizer.state.failed=true; return; } NoViableAltException nvae = new NoViableAltException(getDescription(), decisionNumber, s, input); error(nvae); throw nvae; }
" state "+s+" is special state "+specialState); s = specialStateTransition(specialState,input); if ( debug ) { System.err.println("DFA "+decisionNumber+ noViableAlt(s,input); return 0; noViableAlt(s,input); return 0; noViableAlt(s,input); return 0;
protected void noViableAlt(int s, IntStream input) throws NoViableAltException { if (recognizer.state.backtracking>0) { recognizer.state.failed=true; return; } NoViableAltException nvae = new NoViableAltException(getDescription(), decisionNumber, s, input); error(nvae); throw nvae; }