Question 9602 – Compiler-Design
February 13, 2024
Question 9635 – Compiler-Design
February 13, 2024
Question 9602 – Compiler-Design
February 13, 2024
Question 9635 – Compiler-Design
February 13, 2024

Question 9634 – Compiler-Design

Consider the grammar shown below

S → i E t S S' | a
S' → e S | ε
E → b 

In the predictive parse table. M, of this grammar, the entries M[S’, e] and M[S’, $] respectively are

Correct Answer: D

Question 43 Explanation: 
First(S) = {1,a}
First(S’) = {e,ε}
First(E) = {b}
Follow(S’) = {e,$}
Only when ‘First’ contains ε, we need to consider FOLLOW for getting the parse table entry.

Hence, option (D) is correct.
A
{S’→e S} and {S’→ε}
B
{S’→e S} and { }
C
{S’→ε} and {S’→ε}
D
{S’→e S, S’→ε} and {S’→ε}
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!