reservedword.java
来自「语法分析器」· Java 代码 · 共 29 行
JAVA
29 行
/*
* 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 + =
减小字号Ctrl + -
显示快捷键?