Slide 1Symbol Table Slide 2 Role of Symbol Table Essential data structure for compiler Used for storing information about identifiers appearing in a source program Lexical…