remove some codes for scheduling
[IRC.git] / Robust / src / Lex / Identifier.java
1 package Lex;
2
3 import java_cup.runtime.Symbol;
4 import Parse.Sym;
5
6 public class Identifier extends Token {
7   String identifier;
8   public Identifier(String identifier) { this.identifier=identifier; }
9
10   public String toString() { return "Identifier <"+identifier+">"; }
11
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>
16    */
17   Symbol token() { return new Symbol(Sym.IDENTIFIER, identifier); }
18 }