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