satherblockfinishinginfo.java

来自「SRI international 发布的OAA框架软件」· Java 代码 · 共 41 行

JAVA
41
字号
package antlr_oaa;

/* ANTLR Translator Generator
 * Project led by Terence Parr at http://www.jGuru.com
 * Software rights: http://www.antlr.org/RIGHTS.html
 *
 * $Id: SatherBlockFinishingInfo.java,v 1.1 2002/11/08 17:37:44 agno Exp $
 */

class SatherBlockFinishingInfo 
{
    String postscript;		// what to generate to terminate block
    boolean generatedSwitch;    // did block finish with "default:" of switch?
    boolean generatedAnIf;
	
    /** When generating an if or switch, end-of-token lookahead sets
     *  will become the else or default clause, don't generate an
     *  error clause in this case.
     */
    boolean needAnErrorClause;


    public SatherBlockFinishingInfo() 
    {
	postscript=null;
	generatedSwitch=generatedSwitch = false;
	needAnErrorClause = true;
    }

    public SatherBlockFinishingInfo( String ps, 
				     boolean genS, 
				     boolean generatedAnIf, 
				     boolean n ) 
    {
	postscript = ps;
	generatedSwitch = genS;
	this.generatedAnIf = generatedAnIf;
	needAnErrorClause = n;
    }
}

⌨️ 快捷键说明

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