package rebelsky.compiler.lexer;

/**
 * Simple identifiers for a tokenizer.
 *
 * @author Samuel A. Rebelsky
 * @version 1.1 of January 2004
 */
public class Identifier
  extends NamedToken
{
  // +--------------+-------------------------------------------------------
  // | Constructors |
  // +--------------+

  public Identifier(String idval) {
    super(idval,Token.IDENTIFIER);
  } // Identifier(String)


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

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

} // class Identifier

