Java LR or LL Parsing

My teacher said that Java cannot be parsed by LL. I do not understand this and am wondering if this is true.

I searched for Java 8 grammar and found this: https://github.com/antlr/grammars-v4/blob/master/java8/Java8.g4

But even if I try to parse the grammar, I don't get the problem for parsing LL. Does anyone know if this is true, know the scientific evidence, or simply can explain to me why a Java grammar construct that can be analyzed by LL cannot be found?

Many thanks to the guys and girls.

+4
source share
2 answers

Java Language Specification Java 7 , LL(1):

, , . , LL (1), .

:

  • (A|B), FIRST; FIRST(A) FIRST(B)

LL(1).

+2

, - . LL- , Java, , Java 7.

, , , , Java LL.

0

All Articles