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

📄 explist.java

📁 用Java实现的编译器。把源代码编译成SPARC汇编程序
💻 JAVA
字号:
package CatDecaf.IR; // Java Package generated by the BNF Converter.
import parser.*;
import CatDecaf.Utilities.Debugger.*;
public class ExpList implements CatDecaf.Utilities.Visitable
{
  public Exp exp_;
  public ExpList expList_;
  public int listSize;

  public ExpList(Exp p1, ExpList p2) 
  	{ exp_ = p1; expList_ = p2; listSize = -1;}
  
  public ExpList reverse()
  {
    if (expList_ == null) return this;
    else
    {
      ExpList tmp = expList_.reverse(this);
      expList_ = null;
      return tmp;
    }
  }
  public ExpList reverse(ExpList prev)
  {
    if (expList_ == null)
    {
      expList_ = prev;
      return this;
    }
    else
    {
      ExpList tmp = expList_.reverse(this);
      expList_ = prev;
      return tmp;
    }
  }

  public void accept(CatDecaf.Utilities.Visitor v) { v.visit(this); }

}

⌨️ 快捷键说明

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