retagged by
626 views
3 votes
3 votes
Design predictive parsing table for below grammar.
How many multiple entries are there?

S → AA | ab

A → Bd | ε

B → SB | d
retagged by

1 Answer

1 votes
1 votes

 

Valid LL(1) Grammars

 

For any production S -> A | B, it must be the case that:

  • For no terminal t could A and B derive strings beginning with t
  • At most one of A and B can derive the empty string
  • if B can derive the empty string, then A does not derive any string beginning with a terminal in Follow(A)

Related questions

0 votes
0 votes
1 answer
1
0 votes
0 votes
1 answer
2
4 votes
4 votes
1 answer
3
mohitbawankar asked Jan 10, 2018
1,626 views
Consider the given below grammarS→ cAdA→ bA | aA | bIf a recursive descent parser is used for string “cbababd” then number of back trackin worst case is:
5 votes
5 votes
2 answers
4
vishwa ratna asked Jan 18, 2017
2,769 views
How to do this type of QUESTIONS?Consider following grammar : S → S1 + A | A A → D – A | D D → D1 * B | B B → num The number of internal nodes for the parse tre...