scanner.java
来自「jflex-1.4.zip for the compiler construct」· Java 代码 · 共 26 行
JAVA
26 行
package java_cup.runtime;/** * Defines the Scanner interface, which CUP uses in the default * implementation of <code>lr_parser.scan()</code>. Integration * of scanners implementing <code>Scanner</code> is facilitated. * * @version last updated 23-Jul-1999 * @author David MacMahon <davidm@smartsc.com> *//* ************************************************* Interface Scanner Declares the next_token() method that should be implemented by scanners. This method is typically called by lr_parser.scan(). End-of-file can be indicated either by returning <code>new Symbol(lr_parser.EOF_sym())</code> or <code>null</code>. ***************************************************/public interface Scanner { /** Return the next token, or <code>null</code> on end-of-file. */ public Symbol next_token() throws java.lang.Exception;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?