retagged by
564 views
0 votes
0 votes
Which of the following is true at any valid state in shift reduce parsing

1.viable prefixes appear only at the bottom of the stack and not inside

2.viable prefixes appear only at the top of the stack and not inside

3.Stack contains only a set of viable prefixes

4.Stack never contains viable prefixes
retagged by

1 Answer

Best answer
0 votes
0 votes

The prefixes of right sentential forms that can appear on the stack of a shift reduce parser are called viable prefixes.

stack only contains set of viable prefixes.

reference  :http://cse.iitkgp.ac.in/~bivasm/notes/scribe/11CS30001.pdf

selected by
Answer:

Related questions

3 votes
3 votes
1 answer
1
3 votes
3 votes
2 answers
2
Hira Thakur asked Aug 14, 2017
956 views
what is the difference between Handle and Viable prefix??
1 votes
1 votes
1 answer
3
kirtikanwar asked Jan 4, 2017
1,037 views
consider the following grammar productionS->XXX->0X|1In the canonical LR method if [X->0•X,0] is an item then which of the following is the viable prefix of the item?a)...
11 votes
11 votes
2 answers
4