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; }
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; }
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; }
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; }
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; }
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; }
@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); }
/** * @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); }