Use symbol table to assign type attribute to variables