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

Consider the following grammer:
E E(T)|T
T T * F/id
F (id)

Which of the following can be the correct handle in bottom up parsing for the above grammar?

A
id * (id)
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
(id)
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
id * F
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
E(id)
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is B (id)
Handle is the right hand side part of any production that helps in the reduction to a non-terminal at LHS in bottom up parsing.
(id) is RHS part of production F.
option (d) is correct.

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Aromatic Compounds - Chemical Properties
CHEMISTRY
Watch in App
Join BYJU'S Learning Program
CrossIcon