Which among the following is used to group the characters into tokens?
2021
Which among the following is used to group the characters into tokens?
- A.
Parser
- B.
Code generator
- C.
Lexical analyser
- D.
None of the above
- E.
Question not attempted
Attempted by 174 students.
Show answer & explanation
Correct answer: C
The lexical analyser (scanner) reads the input as a stream of characters and groups them into tokens (like keywords, identifiers, operators).
⇒ Hence, it is responsible for grouping characters into tokens.