public interface LexicalAnalyzer
| Modifier and Type | Method and Description |
|---|---|
Token |
getSymbol()
Gets next lexical symbol from source code, from actual position.
|
void |
reset()
Performs reset of the analyzer.
|
void |
reset(Reader sourceCode,
int startLine,
int startChar,
int startColumn)
Performs reset of the analyzer.
|
void reset()
void reset(Reader sourceCode, int startLine, int startChar, int startColumn)
sourceCode - Reader of the source code.startLine - from this line should lexical analyzer start, usually 0startChar - from this char should lexical analyzer start, usually 0startColumn - from this column should lexical analyzer start, usually 0Token getSymbol() throws IOException
IOException - is thrown when the token could not be readCopyright © 2017. All rights reserved.