(→Problem) |
(→Problem) |
||
Line 11: | Line 11: | ||
Input: xwxkyy | Input: xwxkyy | ||
+ | |||
+ | Is this an SLR(1) grammar? | ||
== Solution == | == Solution == |
Contents |
S -> x A y | x B y | x A z B -> k A w S | k
Initial symbol: S
Terminals: { k, w, x, y, z }
Input: xwxkyy
Is this an SLR(1) grammar?