Assignment task: To implement a compiler for a programming language we should program the following programs in sequence:
- Lexical Analyzer (Scanner); Parser and AST; Semantic Analyzer; Code generator.
- Parser and AST; Lexical Analyzer (Scanner); Semantic Analyzer; Code generator.
- Lexical Analyzer (Scanner); Semantic Analyzer; Parser and AST; Code generator.
- Lexical Analyzer (Scanner); Code generator; Parser and AST; Semantic Analyzer
Correct answer:
Explanation: