📄 parser.java
字号:
/*
* 09/23/2005
*
* Parser.java - An interface for the parser in a compiler.
* Copyright (C) 2005 Robert Futrell
* email@address.com
* www.website.com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
package org.fife.compiler;
import java.io.Reader;
import java.util.Iterator;
/**
* An interface for a parser.
*
* @author Robert Futrell
* @version 0.1
*/
public interface Parser {
/*****************************************************************************/
/**
* Parses input from the specified <code>Reader</code>.
*
* @param r The input stream from which to parse.
* @see #getNoticeIterator()
*/
public void parse(Reader r);
/*****************************************************************************/
/**
* Returns an iterator over the <code>ParserNotice</code>s received
* from this parser during the call to {@link #parse}.
*
* @return An iterator over the <code>ParserNotice</code>s.
* @see ParserNotice
* @see #parse(Reader r)
*/
public Iterator getNoticeIterator();
/*****************************************************************************/
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -