LL(2) language that is not LL(1)

grammar, parsing

Solution

Parsing Techniques by Grune and Jacobs presents an example. An older version of this book is available online at

http://dickgrune.com/Books/PTAPG_1st_Edition/BookBody.pdf

and the example is on page 181.

Problem

In order to further my understanding of parsers and grammars, I'm searching for a (hopefully simple) example of a language that is LL(2) but not LL(1). That is, a language that can be generated by an LL(2) grammar but not by any LL(1) grammar. Are there useful languages in that class ? I.e could we imagine a computer language that is LL(2) but not LL(1) ?

Original source