|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectScanner
public class Scanner
Scan an input stream looking for tokens defined for a simple language.
Constructor Summary | |
---|---|
Scanner(CompilerIO io,
SymbolTable reserved)
Construct a new Scanner object. |
Method Summary | |
---|---|
Token |
nextToken()
Starting with the current character, identify the next Token and return the appropriate Token object to the caller. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Scanner(CompilerIO io, SymbolTable reserved)
io
- the CompilerIO object to use in reading and writing files.reserved
- the SymbolTable manager. Table 0 is assumed to be
the reserved word table and is initialized in this constructor.Method Detail |
---|
public Token nextToken()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |