Slide 1Lexical Analysis Arial Font Family Slide 2 Figure 3.1: Interactions between the lexical analyzer and the parser Slide 3 Figure 3.2: Examples of tokens Slide 4 Figure…