2,613 views
1 votes
1 votes
ARE NUMBER OF SHIFT ENTRIES / ACTIONS IN PARSING TABLE OF SLR(1) AND LALR(1) SAME ALWAYS??

2 Answers

1 votes
1 votes
the only change comes i reduce in lr(0) we directly put at all terminals

in slr only at follow positions

in clr and lalr only at look ahead symbols
0 votes
0 votes
the shift moves in all LR(K)  parsing table is same but the bit difference comes only at reduce part for LR(0)  entire row is places vit that particular R notation and SLR(1) is by follow of LHS of that production and for LALR(1) and CLR(1) places under lookahead only but not the entire row..

Related questions

4 votes
4 votes
1 answer
3
Kapil asked Dec 27, 2016
18,989 views
Consider a Grammar G as follows :$S\rightarrow W$$W \rightarrow ZXY / XY$$Y\rightarrow c/\epsilon$$Z\rightarrow a/d$$X\rightarrow Xb/\epsilon$Draw the LL(1) parsing table...
0 votes
0 votes
0 answers
4