// token for the bitter compiler
import java.util.*;

class token
{
    public String name;
    public int type;
    public Vector children;  
    
    token(int t, String n) {
	type = t;
	name = n;
	children = new Vector();
    }
    
    void addChild(token child){
	children.addElement(child);
    }
    
    void print(int depth){
	String s = new String();
	for (int i=0; i<depth; i++)
		s = s + "   ";
	System.out.println(s + name);
	for (int i=0; i<children.size(); i++)
		((token)children.elementAt(i)).print(depth+1);
    }
    
    
} // end of token class




