aima.logic.common
Class Lexer

java.lang.Object
  extended by aima.logic.common.Lexer
Direct Known Subclasses:
FOLLexer, PELexer

public abstract class Lexer
extends java.lang.Object


Field Summary
protected  java.io.Reader input
           
protected  int lookAhead
           
protected  int[] lookAheadBuffer
           
 
Constructor Summary
Lexer()
           
 
Method Summary
 void clear()
           
protected  void consume()
           
protected  void fillLookAheadBuffer()
           
protected  boolean isEndOfFile(int i)
           
protected  void loadNextCharacterFromInput()
           
protected  char lookAhead(int position)
           
protected abstract  Token nextToken()
           
 void setInput(java.lang.String inputString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

input

protected java.io.Reader input

lookAhead

protected int lookAhead

lookAheadBuffer

protected int[] lookAheadBuffer
Constructor Detail

Lexer

public Lexer()
Method Detail

nextToken

protected abstract Token nextToken()

setInput

public void setInput(java.lang.String inputString)

fillLookAheadBuffer

protected void fillLookAheadBuffer()

lookAhead

protected char lookAhead(int position)

isEndOfFile

protected boolean isEndOfFile(int i)

loadNextCharacterFromInput

protected void loadNextCharacterFromInput()

consume

protected void consume()

clear

public void clear()