1 package polyglot.lex; 2 3 import java_cup.runtime.Symbol; 4 import polyglot.util.Position; 5 6 7 public class Identifier extends Token { 8 String identifier; 9 public Identifier(Position position, String identifier, int sym) 10 { 11 super(position, sym); 12 this.identifier=identifier; 13 } 14 15 public String getIdentifier() { return identifier; } 16 17 public String toString() { return "identifier \"" + identifier + "\""; } 18 } 19 | Popular Tags |