|                                                                                                              1   package fri.patterns.interpreter.parsergenerator;
 2
 3   import java.util.List
  ; 4   import java.util.Map
  ; 5   import java.io.PrintStream
  ; 6   import java.io.IOException
  ; 7
 8
 31
 32  public interface Lexer
 33  {
 34
 38      public void setInput(Object
  text) throws IOException  ; 39
 40
 45      public void setTerminals(List
  terminals); 46
 47
 53      public Token getNextToken(Map
  tokenSymbols) throws IOException  ; 54
 55
 56      public void clear();
 57
 58
 59
 60
 61
 65      public interface TokenListener
 66      {
 67
 72          public void tokenReceived(Token token, boolean ignored);
 73      }
 74
 75
 79      public void addTokenListener(Lexer.TokenListener listener);
 80
 81
 85      public void removeTokenListener(Lexer.TokenListener listener);
 86
 87
 88
 89
 90
 92
 93      public void dump(PrintStream
  out); 94
 95
 96      public void setDebug(boolean debug);
 97
 98  }
 99
                                                                                                                                                                                                             |                                                                       
 
 
 
 
 
                                                                                   Popular Tags                                                                                                                                                                                              |