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

📄 str_token.java

📁 《java virtual machine》是研究jvm的一本书
💻 JAVA
字号:

package java_cup.runtime;

/** This subclass of token represents symbols that need to maintain one
 *  String value as an attribute.  It maintains that value in the public
 *  field str_val.
 *
 * @see java_cup.runtime.int_token
 * @version last updated: 11/25/95
 * @author  Scott Hudson
 */

public class str_token extends token {
  /** Full constructor. */
  public str_token(int term_num, String v)
    {
      /* super class does most of the work */
      super(term_num);

      str_val = v;
    }

  /** Constructor for value defaulting to an empty string. */
  public str_token(int term_num)
    {
      this(term_num, "");
    }

  /** The stored string value. */
  public String str_val;

};

⌨️ 快捷键说明

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