package rebelsky.compiler.pascal; import rebelsky.compiler.lexer.NamedToken; /** * Simple identifiers for a Pascal tokenizer. * * @author Samuel A. Rebelsky * @version 1.0 of October 2002 */ public class PascalIdentifier extends NamedToken { // +--------------+------------------------------------------------------- // | Constructors | // +--------------+ public PascalIdentifier(String idval) { super(idval,PascalTokens.PIDENTIFIER); } // PascalIdentifier(String) // +-----------+---------------------------------------------------------- // | Observers | // +-----------+ /** * Convert the token to a string (e.g., for printing). */ public String toString() { return "ID[" + super.toString() + "]"; } // toString } // class PascalIdentifier