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

📄 exp.java

📁 用Java实现的编译器。把源代码编译成SPARC汇编程序
💻 JAVA
字号:
/**
*This is an abstract class for literals. 
*There are two types of literals in decaf, intliteral and boolliteral
**/
package CatDecaf.IR;
import CatDecaf.Utilities.*;
import parser.*;
import java6035.tools.ASM.*;

public abstract class Exp implements Visitable{
	
	public int expLineNo;
	public Exp compileResult; 	//compile time interpretation of this expression
	public Exp constantResult;	//constant propagation for this expression
	public Exp algebraicResult; // algebraic simplification
	public Exp copyResult; //result for copy propagation
	//public IDDescriptor idd;
	public void setExpLineNo(int i){
		expLineNo = i;
	}
	public int getExpLineNo(){
		return expLineNo;
	}
	public abstract int getType();
	public abstract SPARCRegister getReg();
	public abstract void setReg(SPARCRegister r);
	public abstract void releaseReg();
	public abstract boolean noError();
		

}

⌨️ 快捷键说明

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