Recent questions tagged viable-prefix

876
views
0 answers
5 votes
Describe all the viable prefixes for the following grammars:The grammar $S\rightarrow 0S1\mid 01$ of Question $4.2.2(a)$ ... The grammar $S\rightarrow S(S)\mid \epsilon$ of Question $4.2.2(c)$.
2.5k
views
1 answers
3 votes
Consider the following grammar:S-->XXX-->bX-->aXWhich of the following can be the viable prefixes?baabaabaaababbbbaX
1.7k
views
1 answers
4 votes
Which of the following statements on Viable Prefixes is incorrect?A viable prefix does not extend past the right end of the handleFor any context-free grammar, ... a parser has viable prefixes on the stack no parsing error has been detected
404
views
0 answers
1 votes
I have one doubt regarding getting viable prefixes for a grammar. Suppose I am given a grammar G which is told to be LR(0).I have observed, if I ... to give me viable prefix in a reasonable amount of time and accurate answer.Pleas help.
8.2k
views
4 answers
15 votes
Consider the following Grammar :$S \rightarrow ZZ$ ... it. And do explain the difference between viable prefix and Handle Please :)
1.6k
views
1 answers
0 votes
I am confused in the Concept of Handles in right sentential form and Viable Prefix. Can Please anybody explain these two concepts Briefly using Examples :)
583
views
1 answers
0 votes
Which of the following is true at any valid state in shift reduce parsing1.viable prefixes appear only at the bottom of the stack and not inside2 ... inside3.Stack contains only a set of viable prefixes4.Stack never contains viable prefixes
305
views
1 answers
0 votes
what is difference between handle and viable prefixes?
771
views
1 answers
2 votes
S - >aSb | cGive viable prefix for this with details of how to find viable prefix? for string - - aacbb
1.0k
views
2 answers
3 votes
what is the difference between Handle and Viable prefix??
1.4k
views
1 answers
5 votes
Consider the following grammar:$S\rightarrow0S1 | 01$How many of the following are the viable prefixes of the grammar?i. 01 ii. 001iii. 00011iv. 00S1PS: given answers i, ii and iv , please explain!
1.1k
views
1 answers
1 votes
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)000 b)111 c) 011 d)110
4.5k
views
4 answers
3 votes
given GrammarE → E + EE → E * EE → ( E )E → idFind set of handles and viable prefixes for the input string id1 + id2 * id3
3.2k
views
1 answers
2 votes
1.4k
views
2 answers
4 votes
i think "(E+F*" is viable prefix but "E+F*" is not viable prefix. correct?
2.8k
views
2 answers
11 votes
Consider the folllowing grammar$ S\rightarrow AaS \ |\ b$ A\rightarrow c \ |\ d \ |B$ B\rightarrow AgC \ |\ AhC \ | \ DgC | \ DhC$ ... )Aab$ \left ( 2 \right )ca$ \left ( 3 \right )cab$\left ( 4 \right )AgCS$
14.7k
views
2 answers
4 votes
Can someone describe what is a viable prefix with an example?
1.5k
views
3 answers
2 votes
SET OF VIABLE PREFIXES FOR A GIVEN SLR(1) GRAMMAR IS REGULAR LANGUAGE ?
2.9k
views
3 answers
4 votes
1.2k
views
1 answers
0 votes
https://gateoverflow.in/?qa=blob&qa_blobid=6419625116648850773
19.5k
views
2 answers
53 votes
Which one of the following is TRUE at any valid state in shift-reduce parsing?Viable prefixes appear only at the bottom of the stack and not ... insideThe stack contains only a set of viable prefixesThe stack never contains viable prefixes
To see more, click for the full list of questions or popular tags.