General Mechanism of Electrophilic Aromatic Substitution
Consider the ...
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.