tiger编译器的Java实现

源代码在线查看: name.java

软件大小: 562 K
上传用户: jc6629402
关键词: tiger Java 编译器
下载地址: 免注册下载 普通下载 VIP

相关代码

				package Types;								public class NAME extends Type {				   public Symbol.Symbol name;				   private Type binding;				   public NAME(Symbol.Symbol n) {name=n;}				   public boolean isLoop() {				      Type b = binding; 				      boolean any;				      binding=null;				      if (b==null) any=true;				      else if (b instanceof NAME)				            any=((NAME)b).isLoop();				      else any=false;				      binding=b;				      return any;				     }				     				   public Type actual() {return binding.actual();}								   public boolean coerceTo(Type t) {					return this.actual().coerceTo(t);				   }				   public void bind(Type t) {binding = t;}				}							

相关资源