joosc.lexer
Class Lexer

java.lang.Object
  extended byjoosc.lexer.Lexer

public class Lexer
extends java.lang.Object


Nested Class Summary
static class Lexer.State
           
 
Field Summary
protected  Lexer.State state
           
protected  Token token
           
 
Constructor Summary
Lexer(java.io.PushbackReader in)
           
 
Method Summary
protected  void filter()
           
protected  Token getToken()
           
 Token next()
           
 Token peek()
           
protected  void unread(Token token)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token

protected Token token

state

protected Lexer.State state
Constructor Detail

Lexer

public Lexer(java.io.PushbackReader in)
Method Detail

filter

protected void filter()
               throws LexerException,
                      java.io.IOException
Throws:
LexerException
java.io.IOException

peek

public Token peek()
           throws LexerException,
                  java.io.IOException
Throws:
LexerException
java.io.IOException

next

public Token next()
           throws LexerException,
                  java.io.IOException
Throws:
LexerException
java.io.IOException

getToken

protected Token getToken()
                  throws java.io.IOException,
                         LexerException
Throws:
java.io.IOException
LexerException

unread

protected void unread(Token token)
               throws java.io.IOException
Throws:
java.io.IOException