package parser.ServletParser.sqllex;

import parser.ServletParser.sqlparse.Sym;
import java_cup.runtime.Symbol;

public class Identifier extends Token {
  String identifier;
  public Identifier(String identifier) { this.identifier=identifier; }

  public String toString() { return "Identifier <"+identifier+">"; }

  /* Ben Walter <bwalter@mit.edu> correctly pointed out that
   * the first released version of this grammar/lexer did not
   * return the string value of the identifier in the parser token.
   * Should be fixed now. ;-) <cananian@alumni.princeton.edu>
   */
  Symbol token() { return new Symbol(Sym.IDENTIFIER, identifier); }
}
