001         package com.croftsoft.core.util.jlex;
002    
003         import java.io.IOException;
004    
005         /*********************************************************************
006         * Interface for token scanners.
007         *
008         * <B>Reference:</B>
009         *
010         * <P>
011         *
012         * "JLex: A Lexical Analyzer Generator for Java"<BR>
013         * <A HREF="http://www.cs.princeton.edu/~appel/modern/java/JLex/">
014         * http://www.cs.princeton.edu/~appel/modern/java/JLex/</A>
015         *
016         * @author
017         *   <a href="https://www.croftsoft.com/">David Wallace Croft</a>
018         * @version
019         *   1999-02-10
020         *********************************************************************/
021    
022         public interface  TokenScanner
023         //////////////////////////////////////////////////////////////////////
024         //////////////////////////////////////////////////////////////////////
025         {
026    
027         /*********************************************************************
028         * Fetches the next Token from the input stream.
029         *
030         * @return
031         *   The next Token or, if the end of the file is reached, null.
032         *********************************************************************/
033         public Token  nextToken ( ) throws IOException;
034    
035         //////////////////////////////////////////////////////////////////////
036         //////////////////////////////////////////////////////////////////////
037         }