Which phase of compiler generates stream of atoms?
2015
Which phase of compiler generates stream of atoms?
- A.
Syntax Analysis
- B.
Lexical Analysis
- C.
Code Generation
- D.
Code Optimization
Attempted by 112 students.
Show answer & explanation
Correct answer: B
The correct phase is Lexical Analysis. This stage scans the source code and converts characters into meaningful tokens, often referred to as atoms or lexical units. These tokens form the stream input for the subsequent Syntax Analysis phase.
A video solution is available for this question — log in and enroll to watch it.