Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: java_cup/runtime/Scanner.java


1   package java_cup.runtime;
2   
3   /**
4    * Defines the Scanner interface, which CUP uses in the default
5    * implementation of <code>lr_parser.scan()</code>.  Integration
6    * of scanners implementing <code>Scanner</code> is facilitated.
7    *
8    * @version last updated 23-Jul-1999
9    * @author David MacMahon <davidm@smartsc.com>
10   */
11  
12  /* *************************************************
13    Interface Scanner
14    
15    Declares the next_token() method that should be
16    implemented by scanners.  This method is typically
17    called by lr_parser.scan().
18   ***************************************************/
19  public interface Scanner {
20      public Symbol next_token() throws java.lang.Exception;
21  }