A lexical analyzer uses the following token definitions: For the string given…
GATE · 2026 · CS · Set 2 · Computer Science & IT
A lexical analyzer uses the following token definitions:

For the string given below,
𝑥1 23𝑚𝑚 78 𝑦 7𝑧 𝑧𝑧5 14𝐴 8𝐻 𝐴𝑎𝑌𝑐𝐷
the number of tokens (excluding 𝑤𝑠) that will be produced by the lexical analyzer is_____________.
Attempted by 79 students.
Sign up free to check your answer
Sign up freeLoading lesson…