functionid.java
来自「编译器中的词法分析」· Java 代码 · 共 49 行
JAVA
49 行
package cmm.cmmcc;
import cmm.collections.Symtab;
/**
* 函数标示符类,继承标示符类
* @author Huang Xuanxing
*
*/
public class FunctionId extends Id {
private static Symtab localTable; // 局部符号表
private int[] paramList = null; // 形参列表
public FunctionId(String inId) {
super(inId);
localTable = new Symtab();
}
/**
* 获得返回值
* @return
*/
public int getReturnType() {
return super.getType();
}
public void setParamList(int[] inList) {
paramList = inList;
}
public int[] getParamList() {
return paramList;
}
/**
* 释放符号表
*
*/
public void releaseTable() {
if (localTable != null) {
localTable = null;
}
}
public void evaluate() {
// Not implement.
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?