Computer Sciences > Gate 2015 Set-1 > Parsing
Which one of the following is True at any valid state in shift-reduce parsing?
A
Viable prefixes appear only at the bottom of the stack and not inside
B
Viable prefixes appear only at the top of the stack and not inside
C
The stack contains only a set of viable prefixes
D
The stack never contains viable prefixes

Correct : Parsing

Similar Questions

Which of the following statements about the parser is/are correct? I. Canonical LR is more powerful than SLR. II. SLR is more powerful than LALR. III. SLR is...
#161 MCQ
Consider the augmented grammar given below: S′ → S S → ⏐id L → L, S⏐S Let I0= CLOSURE ({[S′ → S]}). The number of items in the set GOTO (I0,
#620 Fill in the Blanks
Consider the following context-free grammar where the start symbol is S and the set of terminals is {a,b,c,d}. The following is a partially-filled LL(1) par...
#928 MCQ

Related Topics

No tags found

Unique Visitor Count

Total Unique Visitors

Loading......