checking if the following grammar is LR(0) and LR(1)

132 Views Asked by At

I have the following grammar:

S -> A
A -> B | B[*]
B -> [AB]
AB -> *,AB | epsilon

S,A,B,AB are variables and [ ] , * are terminals

Is it:

  1. LR(0)?
  2. LR(1)? and how can I prove it?
0

There are 0 best solutions below