package Tree;

/**
 * The "allocate space for this string" instruction.
 *
 * @author Samuel A. Rebelsky
 * @version 1.0 of 10 December 1998
 */
public class STRING extends Stm {
  // +--------+--------------------------------------------------
  // | Fields |
  // +--------+

  /* The string stored in here. */
  public String str;


  // +--------------+--------------------------------------------
  // | Constructors |
  // +--------------+

  /* Build a new instruction. */
  public STRING(String str) { 
    this.str = str; 
  }


  // +---------+-------------------------------------------------
  // | Methods |
  // +---------+

  /**
   * Generate a list of all the subsexpressions.  In this case,
   * there are none.
   */
  public ExpList kids() {
    return null;
  }

  /**
   * Build a new instruction given a list of subexpressions.  This
   * should never be used.
   */
  public Stm build(ExpList kids) {
    return new STRING("");
  }
} // class STRING


