S := L '=' R | R L := '*' R | 'id' R := L = DESC: This is a grammar from the Dragon book, it resembles the C pointer dereferencing and assignment syntax. It shows well that it is not a SLR(1) grammar but a LALR(1) grammar.