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