%token a b %start S %% // Example 5.17 from Aho and Ullman, The Theory of Parsing, Translation, and Compiling. // an LL(2) grammar S : | a b A ; A : S a a | b ;