t.setText(state.text); t.setCharPositionInLine(state.tokenStartCharPositionInLine); grammarError(ErrorType.UNTERMINATED_STRING_LITERAL, t);
t.setText(state.text); t.setCharPositionInLine(state.tokenStartCharPositionInLine); grammarError(ErrorType.UNTERMINATED_STRING_LITERAL, t);
t.setText(state.text); t.setCharPositionInLine(state.tokenStartCharPositionInLine); grammarError(ErrorType.UNTERMINATED_STRING_LITERAL, t);
t.setText(state.text); t.setCharPositionInLine(state.tokenStartCharPositionInLine); grammarError(ErrorType.V3_GATED_SEMPRED, t);
t.setText(state.text); t.setCharPositionInLine(state.tokenStartCharPositionInLine); grammarError(ErrorType.V3_GATED_SEMPRED, t);
t.setLine(input.getLine()); t.setCharPositionInLine(input.getCharPositionInLine()-numDigits); grammarError(ErrorType.INVALID_ESCAPE_SEQUENCE, t, input.substring(state.tokenStartCharIndex,getCharIndex()-1));
t.setText(state.text); t.setCharPositionInLine(state.tokenStartCharPositionInLine); grammarError(ErrorType.V3_GATED_SEMPRED, t);
t.setText(state.text); t.setCharPositionInLine(state.tokenStartCharPositionInLine); grammarError(ErrorType.V3_GATED_SEMPRED, t);
t.setLine(input.getLine()); t.setCharPositionInLine(input.getCharPositionInLine()-numDigits); grammarError(ErrorType.INVALID_ESCAPE_SEQUENCE, t, input.substring(state.tokenStartCharIndex,getCharIndex()-1));
t.setLine(input.getLine()); t.setCharPositionInLine(input.getCharPositionInLine()-numDigits); grammarError(ErrorType.INVALID_ESCAPE_SEQUENCE, t, input.substring(state.tokenStartCharIndex,getCharIndex()-1));
public final void mSYNPRED() throws RecognitionException { try { int _type = SYNPRED; int _channel = DEFAULT_TOKEN_CHANNEL; // /Users/parrt/antlr/code/antlr4/tool/src/org/antlr/v4/parse/ANTLRLexer.g:490:14: ( '=>' ) // /Users/parrt/antlr/code/antlr4/tool/src/org/antlr/v4/parse/ANTLRLexer.g:490:16: '=>' { match("=>"); if (state.failed) return; if ( state.backtracking==0 ) { Token t = new CommonToken(input, state.type, state.channel, state.tokenStartCharIndex, getCharIndex()-1); t.setLine(state.tokenStartLine); t.setText(state.text); t.setCharPositionInLine(state.tokenStartCharPositionInLine); grammarError(ErrorType.V3_SYNPRED, t); _channel=HIDDEN; } } state.type = _type; state.channel = _channel; } finally { // do for sure before leaving } } // $ANTLR end "SYNPRED"
public final void mSYNPRED() throws RecognitionException { try { int _type = SYNPRED; int _channel = DEFAULT_TOKEN_CHANNEL; // org/antlr/v4/parse/ANTLRLexer.g:491:14: ( '=>' ) // org/antlr/v4/parse/ANTLRLexer.g:491:16: '=>' { match("=>"); if (state.failed) return; if ( state.backtracking==0 ) { Token t = new CommonToken(input, state.type, state.channel, state.tokenStartCharIndex, getCharIndex()-1); t.setLine(state.tokenStartLine); t.setText(state.text); t.setCharPositionInLine(state.tokenStartCharPositionInLine); grammarError(ErrorType.V3_SYNPRED, t); _channel=HIDDEN; } } state.type = _type; state.channel = _channel; } finally { // do for sure before leaving } } // $ANTLR end "SYNPRED"
public final void mSYNPRED() throws RecognitionException { try { int _type = SYNPRED; int _channel = DEFAULT_TOKEN_CHANNEL; // org/antlr/v4/parse/ANTLRLexer.g:491:14: ( '=>' ) // org/antlr/v4/parse/ANTLRLexer.g:491:16: '=>' { match("=>"); if (state.failed) return; if ( state.backtracking==0 ) { Token t = new CommonToken(input, state.type, state.channel, state.tokenStartCharIndex, getCharIndex()-1); t.setLine(state.tokenStartLine); t.setText(state.text); t.setCharPositionInLine(state.tokenStartCharPositionInLine); grammarError(ErrorType.V3_SYNPRED, t); _channel=HIDDEN; } } state.type = _type; state.channel = _channel; } finally { // do for sure before leaving } } // $ANTLR end "SYNPRED"
public final void mSYNPRED() throws RecognitionException { try { int _type = SYNPRED; int _channel = DEFAULT_TOKEN_CHANNEL; // org\\antlr\\v4\\parse\\ANTLRLexer.g:445:14: ( '=>' ) // org\\antlr\\v4\\parse\\ANTLRLexer.g:445:16: '=>' { match("=>"); if (state.failed) return; if ( state.backtracking==0 ) { Token t = new CommonToken(input, state.type, state.channel, state.tokenStartCharIndex, getCharIndex()-1); t.setLine(state.tokenStartLine); t.setText(state.text); t.setCharPositionInLine(state.tokenStartCharPositionInLine); grammarError(ErrorType.V3_SYNPRED, t); _channel=HIDDEN; } } state.type = _type; state.channel = _channel; } finally { // do for sure before leaving } } // $ANTLR end "SYNPRED"
public final void mSYNPRED() throws RecognitionException { try { int _type = SYNPRED; int _channel = DEFAULT_TOKEN_CHANNEL; // org/antlr/v4/parse/ANTLRLexer.g:490:14: ( '=>' ) // org/antlr/v4/parse/ANTLRLexer.g:490:16: '=>' { match("=>"); if (state.failed) return; if ( state.backtracking==0 ) { Token t = new CommonToken(input, state.type, state.channel, state.tokenStartCharIndex, getCharIndex()-1); t.setLine(state.tokenStartLine); t.setText(state.text); t.setCharPositionInLine(state.tokenStartCharPositionInLine); grammarError(ErrorType.V3_SYNPRED, t); _channel=HIDDEN; } } state.type = _type; state.channel = _channel; } finally { // do for sure before leaving } } // $ANTLR end "SYNPRED"
public final void mERRCHAR() throws RecognitionException { try { int _type = ERRCHAR; int _channel = DEFAULT_TOKEN_CHANNEL; // org\\antlr\\v4\\parse\\ANTLRLexer.g:767:5: ( . ) // org\\antlr\\v4\\parse\\ANTLRLexer.g:767:7: . { matchAny(); if (state.failed) return; if ( state.backtracking==0 ) { Token t = new CommonToken(input, state.type, state.channel, state.tokenStartCharIndex, getCharIndex()-1); t.setLine(state.tokenStartLine); t.setText(state.text); t.setCharPositionInLine(state.tokenStartCharPositionInLine); String msg = getTokenErrorDisplay(t) + " came as a complete surprise to me"; grammarError(ErrorType.SYNTAX_ERROR, t, msg); state.syntaxErrors++; skip(); } } state.type = _type; state.channel = _channel; } finally { // do for sure before leaving } } // $ANTLR end "ERRCHAR"
public final void mERRCHAR() throws RecognitionException { try { int _type = ERRCHAR; int _channel = DEFAULT_TOKEN_CHANNEL; // org/antlr/v4/parse/ANTLRLexer.g:787:5: ( . ) // org/antlr/v4/parse/ANTLRLexer.g:787:7: . { matchAny(); if (state.failed) return; if ( state.backtracking==0 ) { Token t = new CommonToken(input, state.type, state.channel, state.tokenStartCharIndex, getCharIndex()-1); t.setLine(state.tokenStartLine); t.setText(state.text); t.setCharPositionInLine(state.tokenStartCharPositionInLine); String msg = getTokenErrorDisplay(t) + " came as a complete surprise to me"; grammarError(ErrorType.SYNTAX_ERROR, t, msg); state.syntaxErrors++; skip(); } } state.type = _type; state.channel = _channel; } finally { // do for sure before leaving } } // $ANTLR end "ERRCHAR"
public final void mERRCHAR() throws RecognitionException { try { int _type = ERRCHAR; int _channel = DEFAULT_TOKEN_CHANNEL; // /Users/parrt/antlr/code/antlr4/tool/src/org/antlr/v4/parse/ANTLRLexer.g:787:5: ( . ) // /Users/parrt/antlr/code/antlr4/tool/src/org/antlr/v4/parse/ANTLRLexer.g:787:7: . { matchAny(); if (state.failed) return; if ( state.backtracking==0 ) { Token t = new CommonToken(input, state.type, state.channel, state.tokenStartCharIndex, getCharIndex()-1); t.setLine(state.tokenStartLine); t.setText(state.text); t.setCharPositionInLine(state.tokenStartCharPositionInLine); String msg = getTokenErrorDisplay(t) + " came as a complete surprise to me"; grammarError(ErrorType.SYNTAX_ERROR, t, msg); state.syntaxErrors++; skip(); } } state.type = _type; state.channel = _channel; } finally { // do for sure before leaving } } // $ANTLR end "ERRCHAR"
public final void mERRCHAR() throws RecognitionException { try { int _type = ERRCHAR; int _channel = DEFAULT_TOKEN_CHANNEL; // org/antlr/v4/parse/ANTLRLexer.g:813:5: ( . ) // org/antlr/v4/parse/ANTLRLexer.g:813:7: . { matchAny(); if (state.failed) return; if ( state.backtracking==0 ) { Token t = new CommonToken(input, state.type, state.channel, state.tokenStartCharIndex, getCharIndex()-1); t.setLine(state.tokenStartLine); t.setText(state.text); t.setCharPositionInLine(state.tokenStartCharPositionInLine); String msg = getTokenErrorDisplay(t) + " came as a complete surprise to me"; grammarError(ErrorType.SYNTAX_ERROR, t, msg); state.syntaxErrors++; skip(); } } state.type = _type; state.channel = _channel; } finally { // do for sure before leaving } } // $ANTLR end "ERRCHAR"
public final void mERRCHAR() throws RecognitionException { try { int _type = ERRCHAR; int _channel = DEFAULT_TOKEN_CHANNEL; // org/antlr/v4/parse/ANTLRLexer.g:813:5: ( . ) // org/antlr/v4/parse/ANTLRLexer.g:813:7: . { matchAny(); if (state.failed) return; if ( state.backtracking==0 ) { Token t = new CommonToken(input, state.type, state.channel, state.tokenStartCharIndex, getCharIndex()-1); t.setLine(state.tokenStartLine); t.setText(state.text); t.setCharPositionInLine(state.tokenStartCharPositionInLine); String msg = getTokenErrorDisplay(t) + " came as a complete surprise to me"; grammarError(ErrorType.SYNTAX_ERROR, t, msg); state.syntaxErrors++; skip(); } } state.type = _type; state.channel = _channel; } finally { // do for sure before leaving } } // $ANTLR end "ERRCHAR"