Which of the following rule is used in lexical analysis to identify the tokens?
A
Longest suffix match
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
Shortext suffix match
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
Shortest prefix match
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
Longest prefix match
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Open in App
Solution
The correct option is D Longest prefix match "Logest prefix match" is used to identify the tokens in lexical analysis. It is also called maximal munch rule.