⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 simplewhitespace.java

📁 JAVA在编译原理上的应用。
💻 JAVA
字号:
package lolo.scans;/** Instances of this class scan for one or more characters from ASCII <tt>0x00</tt> - <tt>0x20</tt>. * <p>By default these symbols will be ignored. * * @author <a href="http://www.inf.uos.de/bernd" target="_blank">Bernd K&uuml;hl</a>           (<a href="mailto:bernd@informatik.uni-osnabrueck.de">bernd@informatik.uni-osnabrueck.de</a>) */public class SimpleWhitespace extends Scan {    /** Sets <tt>ignore</tt> to <tt>true</tt>.     *     * @see lolo.Scan#ignore     */    {        ignore = true;    }        public void reset() {}        /** Returns whether <tt>ch</tt> is a whitespace character.     *     * @return whether <tt>ch</tt> is a whitespace character.     */    protected boolean isWhitespace(char ch) {        return ' ' >= ch;    }        public State nextChar(char ch) {        boolean b = isWhitespace(ch);        return stateObject.set(b, b);    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -