@Override public void consume() { stream.consume(); }
@Override public void consume() { stream.consume(); }
@Override public void consume() { stream.consume(); }
/** Lexers can normally match any char in it's vocabulary after matching * a token, so do the easy thing and just kill a character and hope * it all works out. You can instead use the rule invocation stack * to do sophisticated error recovery if you are in a fragment rule. */ public void recover(RecognitionException re) { //System.out.println("consuming char "+(char)input.LA(1)+" during recovery"); //re.printStackTrace(); // TODO: Do we lose character or line position information? _input.consume(); } }
public void consume(CharStream input) { int curChar = input.LA(1); if ( curChar=='\n' ) { line++; charPositionInLine=0; } else { charPositionInLine++; } input.consume(); }
public void consume() { int curChar = _input.LA(1); if ( curChar=='\n' ) { line++; charPositionInLine=0; } else { charPositionInLine++; } _input.consume(); }
@Override public void consume() { stream.consume(); }
@Override public void consume() { stream.consume(); }
@Override public void consume() { stream.consume(); }
@Override public void consume() { stream.consume(); }
@Override public void consume() { stream.consume(); }
/** Lexers can normally match any char in it's vocabulary after matching * a token, so do the easy thing and just kill a character and hope * it all works out. You can instead use the rule invocation stack * to do sophisticated error recovery if you are in a fragment rule. */ public void recover(RecognitionException re) { //System.out.println("consuming char "+(char)input.LA(1)+" during recovery"); //re.printStackTrace(); // TODO: Do we lose character or line position information? _input.consume(); } }
@Override public void consume() { stream.consume(); }
/** Lexers can normally match any char in it's vocabulary after matching * a token, so do the easy thing and just kill a character and hope * it all works out. You can instead use the rule invocation stack * to do sophisticated error recovery if you are in a fragment rule. */ public void recover(RecognitionException re) { //System.out.println("consuming char "+(char)input.LA(1)+" during recovery"); //re.printStackTrace(); // TODO: Do we lose character or line position information? _input.consume(); } }
public void consume(CharStream input) { int curChar = input.LA(1); if ( curChar=='\n' ) { line++; charPositionInLine=0; } else { charPositionInLine++; } input.consume(); }
public void consume(CharStream input) { int curChar = input.LA(1); if ( curChar=='\n' ) { line++; charPositionInLine=0; } else { charPositionInLine++; } input.consume(); }
public void consume() { int curChar = _input.LA(1); if ( curChar=='\n' ) { line++; charPositionInLine=0; } else { charPositionInLine++; } _input.consume(); }
private int nextChar(CharStream inputTape) { int ch = currentChar(inputTape); if (ch != IntStream.EOF) { inputTape.consume(); ch = currentChar(inputTape); } return ch; }
private int nextChar(CharStream inputTape) { int ch = currentChar(inputTape); if (ch != IntStream.EOF) { inputTape.consume(); ch = currentChar(inputTape); } return ch; }
public void consume(@NotNull CharStream input) { int curChar = input.LA(1); if ( curChar=='\n' ) { line++; charPositionInLine=0; } else { charPositionInLine++; } input.consume(); }