Made grammer LL1 according to 3.1.8.