blob: 45340ac19e3baa6cf3242650fc0e5bf958a8054a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/**
* 表示标识符的类,可用于表示变量
*/
package minijava.symboltable;
public class MIdentifier extends MType {
// 定义内置类型
public static final String arrType = "int[]";
public static final String intType = "int";
public static final String boolType = "boolean";
public MIdentifier(String v_name, int v_line, int v_column) {
super(v_line, v_column);
name = v_name;
}
}
|