symtable to tree