3 import java_cup.runtime.Symbol;
5 public class Identifier extends Token {
7 public Identifier(String identifier) { this.identifier=identifier; }
9 public String toString() { return "Identifier <"+identifier+">"; }
11 /* Ben Walter <bwalter@mit.edu> correctly pointed out that
12 * the first released version of this grammar/lexer did not
13 * return the string value of the identifier in the parser token.
14 * Should be fixed now. ;-) <cananian@alumni.princeton.edu>
16 Symbol token() { return new Symbol(Sym.IDENTIFIER, identifier); }