What is the primary task of a lexical analyzer in a compiler ?
PYQ TPSC Computer/IT Posts 2024
What is the primary task of a lexical analyzer in a compiler ?
- A.
Identifies tokens based on keywords and identifiers
- B.
Checks the semantic meaning of expressions
- C.
Generates optimized machine code
- D.
Builds the abstract syntax tree of the program
Attempted by 731 students.
Sign up free to check your answer
Sign up freeLoading lesson…

