karel
Class Lexer
java.lang.Object
|
+--karel.Lexer
- public class Lexer
- extends java.lang.Object
Constructor Summary |
Lexer(java.io.Reader rdr)
|
Lexer(java.lang.String filename)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Lexer
public Lexer(java.io.Reader rdr)
throws java.io.IOException
Lexer
public Lexer(java.lang.String filename)
throws java.io.IOException
getCurrentLine
public int getCurrentLine()
pushBack
public boolean pushBack(Token tok)
peekToken
public Token peekToken()
throws java.io.IOException
nextToken
public Token nextToken()
throws java.io.IOException
installSymbol
public void installSymbol(java.lang.String symbol,
int loc)
lookupSymbol
public Symbol lookupSymbol(java.lang.String symbol)
main
public static void main(java.lang.String[] args)