CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

The grammar AAA |(A)|~ε is not suitable for predictive-parsing because the grammar is

A
Ambiguous
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
B
Right-recursive
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
An operator-grammar
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
Left-recursive
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is A Ambiguous
The string ε has more than one parse tree for the given grammar.


Given grammar is Ambiguous, that is the reason that it is not suitable for predictive parsing.

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Deductive Reasoning
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon