/**
 * 
 */
package DataStructures;

/**
 * @author xraver
 *
 */
public abstract class Symbol 
{
	protected String valore;
	protected int tipo;
	
	public Symbol(String v, int t)
	{
		valore = v;
		tipo = t;
	}
	
	public int getType() { return tipo; }
	
	public boolean equals(Object o)
	{
		if(o==null || !(o instanceof Symbol))
			return false;
		else if(o == this)
			return true;
		else
		{
			Symbol s = (Symbol)o;
			return tipo==s.tipo;
		}
	}
}
