2 votes 2 votes what is viable prefix in compiler?? Compiler Design parsing + – yankur9 asked Jan 22, 2017 yankur9 536 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
2 votes 2 votes The set of prefixes of right sentential forms that can appear on the stack of a shift-reduce parser are called viable prefixes. An equivalent definition of a viable prefixis that it is a prefix of right sentential form that does not continue past the right end of the rightmost handle of that sentential form Link: https://en.wikipedia.org/wiki/Viable_prefix Arnab Bhadra answered Apr 27, 2017 Arnab Bhadra comment Share Follow See all 4 Comments See all 4 4 Comments reply Ankit001 commented Jul 18, 2017 reply Follow Share Please give some example 0 votes 0 votes Bikram commented Jul 18, 2017 reply Follow Share read this @ankit https://stackoverflow.com/questions/4202181/explanation-about-viable-prefix 0 votes 0 votes reena_kandari commented Aug 15, 2017 i edited by reena_kandari Aug 15, 2017 reply Follow Share @Bikram sir confirm this, right sentential form viable prefix E e,E E+T e,E,E+,E+T E+F e,E,E+,E+F E+id e,E,E+,E+id T+id e,T T*F+id e,T,T*,T*F T*id+id e,T,T*,T*id F*id+id e,F, id*id+id e,id 1 votes 1 votes joshi_nitish commented Aug 15, 2017 reply Follow Share correct, viable prefix also includes handles.. 0 votes 0 votes Please log in or register to add a comment.