package rebelsky.compiler.lexer;

/**
 * Simple strings for a simple tokenizer.
 *
 * @author Samuel A. Rebelsky
 * @version 1.0 of April 2004
 */
public class CharToken
  extends NamedToken
{
  // +--------------+-------------------------------------------------------
  // | Constructors |
  // +--------------+

  public CharToken(char ch) {
    super(Character.toString(ch),Token.CHAR);
  } // CharToken(String)


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

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

} // class CharToken

