// symbol table for the bitter compiler
import java.util.*;

// a class to represent a symbol table
class symbolTable extends Hashtable{
    private static int count;
    public symbolTable(){
	super();
    } // end of constructor
    
    public synchronized boolean containsKey(token key) {
	return super.containsKey(key.name);
    }
    
    public synchronized void put(token key){
	if(containsKey(key)) return; 
	super.put(key.name, key);
    } // end of put
    
    public synchronized token get(token key){
	return((token)super.get(key.name));
    } // end of get
    
} // end of symbolTable class
