/**
 * Simple strings for a pascal tokenizer.
 *
 * @author Samuel A. Rebelsky
 * @version 0.1 of July 2002
 */
public class PascalString
  extends NamedToken
{
  // +--------------+-------------------------------------------------------
  // | Constructors |
  // +--------------+

  public PascalString(String idval) {
    super(idval,PascalTokens.PSTRING);
  } // PascalString(String)


  // +-----------+----------------------------------------------------------
  // | Observers |
  // +-----------+

  /**
   * Convert the token to a string (e.g., for printing).
   */
  public String toString() {
    return "STRING[" + super.toString() + "]";
  } // toString

  /**
   * Determine if this identifier equals another identifier.
   */
  public boolean equals(PascalString other) {
    return this == other || this.name.equals(other.name);
  } // equals(String)

} // class PascalString

