What is the primary function of LEX in the context of lexical analysis in…
2025
What is the primary function of LEX in the context of lexical analysis in compiler design?
Answer: C. To generate scanners based on regular expressions
- A.
To optimize intermediate code for performance
- B.
To define context-free grammars for parsing
- C.
To generate scanners based on regular expressions
- D.
To build abstract syntax trees
Attempted by 206 students.
Show answer & explanation
Correct answer: C
Loading lesson…