Compiler is a simple program   which reads a program written in one language (i.e., High Level  Language (or) Source Language) and it translates to an equivalent target  program (i.e., Low Level Language).Compiler consists of 2 phases. 1.Analysis Phase2.Synthesis phase Analysis Phase performs 3 actions namelya)Lexical analysis - it contains a sequence of characters called tokens.Input … Read more