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

📄 functionid.java

📁 编译器中的词法分析
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -