Slide 1CSC 4181 Compiler Construction Scope and Symbol Table Slide 2 Symbol Table2 Scope A scope is a textual region of the program in which a (name-to-object) binding is…