public interface StreamIn
| Modifier and Type | Field and Description |
|---|---|
static int |
END_OF_STREAM
end of stream char.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCurcol()
Getter for
curcol. |
int |
getCurline()
Getter for
curline. |
boolean |
isEndOfStream()
Has end of stream been reached?
|
int |
readChar()
Read a char.
|
int |
readCharFromStream()
reads a char from the stream.
|
void |
setLexer(Lexer lexer)
Setter for lexer instance (needed for error reporting).
|
void |
ungetChar(int c)
Unget a char.
|
static final int END_OF_STREAM
int getCurcol()
curcol.int getCurline()
curline.int readCharFromStream()
int readChar()
void ungetChar(int c)
c - charboolean isEndOfStream()
true if end of stream has been reachedvoid setLexer(Lexer lexer)
lexer - Lexer