int aStart2935 = getCharIndex(); int aStartLine2935 = getLine(); int aStartCharPos2935 = getCharPositionInLine(); mNameStartChar(); if (state.failed) return; a = new CommonToken(input, Token.INVALID_TOKEN_TYPE, Token.DEFAULT_CHANNEL, aStart2935, getCharIndex()-1); a.setLine(aStartLine2935); a.setCharPositionInLine(aStartCharPos2935);
int aStart2935 = getCharIndex(); int aStartLine2935 = getLine(); int aStartCharPos2935 = getCharPositionInLine(); mNameStartChar(); if (state.failed) return; a = new CommonToken(input, Token.INVALID_TOKEN_TYPE, Token.DEFAULT_CHANNEL, aStart2935, getCharIndex()-1); a.setLine(aStartLine2935); a.setCharPositionInLine(aStartCharPos2935);
int aStart2935 = getCharIndex(); int aStartLine2935 = getLine(); int aStartCharPos2935 = getCharPositionInLine(); mNameStartChar(); if (state.failed) return; a = new CommonToken(input, Token.INVALID_TOKEN_TYPE, Token.DEFAULT_CHANNEL, aStart2935, getCharIndex()-1); a.setLine(aStartLine2935); a.setCharPositionInLine(aStartCharPos2935);
int aStart2935 = getCharIndex(); int aStartLine2935 = getLine(); int aStartCharPos2935 = getCharPositionInLine(); mNameStartChar(); if (state.failed) return; a = new CommonToken(input, Token.INVALID_TOKEN_TYPE, Token.DEFAULT_CHANNEL, aStart2935, getCharIndex()-1); a.setLine(aStartLine2935); a.setCharPositionInLine(aStartCharPos2935);
int aStart2935 = getCharIndex(); int aStartLine2935 = getLine(); int aStartCharPos2935 = getCharPositionInLine(); mNameStartChar(); if (state.failed) return; a = new CommonToken(input, Token.INVALID_TOKEN_TYPE, Token.DEFAULT_CHANNEL, aStart2935, getCharIndex()-1); a.setLine(aStartLine2935); a.setCharPositionInLine(aStartCharPos2935);
int numDigits = getCharIndex()-state.tokenStartCharIndex-6; if (numDigits > 6) { Token t = new CommonToken(input, state.type, state.channel, state.tokenStartCharIndex, getCharIndex()-1); t.setText(t.getText()); t.setLine(input.getLine()); t.setCharPositionInLine(input.getCharPositionInLine()-numDigits); grammarError(ErrorType.INVALID_ESCAPE_SEQUENCE, t, input.substring(state.tokenStartCharIndex,getCharIndex()-1));
int numDigits = getCharIndex()-state.tokenStartCharIndex-6; if (numDigits > 6) { Token t = new CommonToken(input, state.type, state.channel, state.tokenStartCharIndex, getCharIndex()-1); t.setText(t.getText()); t.setLine(input.getLine()); t.setCharPositionInLine(input.getCharPositionInLine()-numDigits); grammarError(ErrorType.INVALID_ESCAPE_SEQUENCE, t, input.substring(state.tokenStartCharIndex,getCharIndex()-1));
int numDigits = getCharIndex()-state.tokenStartCharIndex-6; if (numDigits > 6) { Token t = new CommonToken(input, state.type, state.channel, state.tokenStartCharIndex, getCharIndex()-1); t.setText(t.getText()); t.setLine(input.getLine()); t.setCharPositionInLine(input.getCharPositionInLine()-numDigits); grammarError(ErrorType.INVALID_ESCAPE_SEQUENCE, t, input.substring(state.tokenStartCharIndex,getCharIndex()-1));
Token t = new CommonToken(input, state.type, state.channel, state.tokenStartCharIndex, getCharIndex()-1); t.setLine(state.tokenStartLine); t.setText(state.text);
Token t = new CommonToken(input, state.type, state.channel, state.tokenStartCharIndex, getCharIndex()-1); t.setLine(state.tokenStartLine); t.setText(state.text);
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"