1 package polyglot.lex; 2 3 /** 4 * The interface "Lexer" describes lexers produced by JFlex for 5 * Polyglot. 6 */ 7 public interface Lexer { 8 9 /** This character denotes the end of file */ 10 final public static int YYEOF = -1; 11 12 /** 13 * The file being scanned, for use in constructing diagnostic 14 * messages. 15 */ 16 public String file(); 17 18 /** 19 * Resumes scanning until the next regular expression is matched, 20 * the end of input is encountered or an I/O-Error occurs. 21 * 22 * @return the next token 23 * @exception IOException if any I/O-Error occurs 24 */ 25 public Token nextToken() throws java.io.IOException; 26 } 27