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

📄 label.java

📁 编译原理大作业---tiger编译器 包括semant,translate,mipsframe,regalloc等所有phase 懂的人自会知道
💻 JAVA
字号:
package Temp;import Symbol.Symbol;/** * A Label represents an address in assembly language. */public class Label  {   private String name;   private static int count;  /**   * a printable representation of the label, for use in assembly   * language output.   */   public String toString() { return name; }  /**   * Makes a new label that prints as "name".   * Warning: avoid repeated calls to <tt>new Label(s)</tt> with   * the same name <tt>s</tt>.   */   public Label(String n) { name = n; }  /**   * Makes a new label with an arbitrary name.   */   public Label() { this("L" + count++); }  /**   * Makes a new label whose name is the same as a symbol.   */   public Label(Symbol s) { this(s.toString()); }}

⌨️ 快捷键说明

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