Which FSA concept is used in the compiler?
2021
Which FSA concept is used in the compiler?
- A.
Code optimization
- B.
Code generation
- C.
Lexical analysis
- D.
Parser
- E.
Question not attempted
Attempted by 137 students.
Show answer & explanation
Correct answer: C
Finite State Automata (FSA) are used in the lexical analysis phase of a compiler to recognize patterns (tokens) like identifiers, keywords, etc.
⇒ Hence, FSA is used in Lexical analysis