CHAPTER 5 Compiler 5.1 Basic Compiler Concepts Source program Lexical analysis Token Table management Syntax analysis Parse tree Intermediate code generation Intermediate…