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

📄 reservedword.java

📁 语法分析器
💻 JAVA
字号:
/*
 * this class be used for creating reserved word 
 * before the lex analysis begings
 * key word has two aspect information : type and name 
 */
public class ReservedWord {
	// the type of the reserved word
	private int type;
//the name of the reserved word
	private String name;
	
	public ReservedWord(String name,int type) {
		this.type=type;
		this.name =name;
	}
/**
 * @return a integer as the type of the reserved word
 */
	public int getType() {
		return type;
	}
/**
 * @return a string as the name of the reserved word
 */
	public String getName() {
		return name;
	}
}

⌨️ 快捷键说明

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