edited by
1,303 views
4 votes
4 votes


i think "(E+F*" is viable prefix but "E+F*" is not viable prefix. correct? 

edited by

2 Answers

3 votes
3 votes
The explanation provided by Manojk is right but we should also include () in the string..

so it should be (E+F* as the viable prefix
1 votes
1 votes
The prefixes of right sentential forms that can appear on the stack of a shift-reduce parser are called viable prefixes.

By definition, a viable prefix is a prefix of a right sentential form that does not continue past the right end of the rightmost handle of that sentential form.

Related questions

2 votes
2 votes
1 answer
1
4 votes
4 votes
2 answers
3
Suvam Chatterjee asked Sep 28, 2015
14,126 views
Can someone describe what is a viable prefix with an example?
4 votes
4 votes
3 answers
4