

class Token extends java_cup.runtime.Symbol {

   public int line;

   public Token (int sym) {
      super(sym);
   }

   public Token (int sym, Object value) {
      super(sym, value);
   }

   public Token (int sym, int left, int right, Object value, int line) {
      super(sym, left, right, value,line);
      //this.line = line;
   }

  /**
   * Returns the token ID of this token. Used for compatibility with the
   * Token class from previous assignments!
   *
   */
   public int getTokenID () {
      return this.sym;
   }

  /**
   * Returns this token as a String
   *
   */
   public String toString () {
      //return "TOKEN VALUE: |" + sym + "|" + " -> " + value;
	return ""+value;
   }

}

