public class Lexer
extends java.lang.Object
| Constructor and Description |
|---|
Lexer(java.io.Reader charSource)
Create a lexer and give provide it with a stream of characters.
|
| Modifier and Type | Method and Description |
|---|---|
Token |
nextToken()
Find the next token.
|
static boolean |
validTokenChar(char ch)
Return
true iff ch is a valid character in a
token. |
public Lexer(java.io.Reader charSource)
public static boolean validTokenChar(char ch)
true iff ch is a valid character in a
token.ch - the character to checktrue means ch is a valid character
in a tokenpublic Token nextToken() throws java.io.IOException, LexicalException
java.io.IOException - If the character source issues an IOException, you will know.LexicalException