creation and printing of the symbol table