edited by
2,397 views
3 votes
3 votes

Consider the following grammar:

S-->XX

X-->b

X-->aX

Which of the following can be the viable prefixes?

  1. baab
  2. aab
  3. aaabab
  4. bbbaX
edited by

1 Answer

0 votes
0 votes
Viable prefix is nothing but stack content in LR Parsing ....in this ques check option if it is visible is stack while doing parsing .. that's it...B

Related questions

0 votes
0 votes
1 answer
2
Na462 asked Jan 16, 2019
763 views
Which of the Statements are True :S1: LR(1) grammar can be LR(0) but not LL(1).S2 : Every regular language is LL(1)S3 : Three address code is linear representation of Syn...
1 votes
1 votes
0 answers
3
rahul sharma 5 asked Oct 29, 2017
542 views
The given answer is 5,i am getting 616 in CLR and 10 in LALR.Please someone confirm?