软件大小: | 28 K | ||
上传用户: | zdh103 | ||
关键词: | Syntax-Directed Principles Techniques Translator | ||
下载地址: | 免注册下载 普通下载 |
相关代码 |
|
package symbols; import lexer.*; public class Array extends Type { public Type of; // array *of* type public int size = 1; // number of elements public Array(int sz, Type p) { super("[]", Tag.INDEX, sz*p.width); size = sz; of = p; } public String toString() { return "[" + size + "] " + of.toString(); } }
相关资源 |
|