GATEverse Practice, past papers & mock tests
GATE 2026 · CS2 - Afternoon
Compiler DesignLexical AnalysismediumNAT1 mark
A lexical analyzer uses the following token definitions letter → [A-Za-z] digit → [0-9] id → letter (letter | digit)* number → digit+ ws → (blank | tab | newline)+ For the string given below, x1 23mm 78 y 7z zz5 14A 8H AaYcD the number of tokens (excluding ws) that will be produced by the lexical analyzer is __________. (answer in integer)
Save your progress

Related Compiler Design PYQs