package rebelsky.compiler.types;

/**
 * Representations of types for a symbol table.
 *
 * @author Samuel A. Rebelsky
 * @version 1.0 of April 2004
 */
public class Type
{
  // +--------+------------------------------------------------------------
  // | Fields |
  // +--------+

  /** The name of the type. */
  String name;

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

  /** Build a new type of a particular name. */
  public Type(String name)
  {
    this.name = name;
  } // Type(String)


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

  /**
   * Convert the type to a string (typically for output).
   */
  public String toString()
  {
    return this.name;
  } // toString()

} // class Type

