+++ /dev/null
-package Lex;
-
-import java_cup.runtime.Symbol;
-import Parse.Sym;
-
-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);
- }
-}