Java EBNF?

Does anyone know the exact source for (E) BNF for the Java language? Preferably, this would be from a source, for example. Sun.

Thanks.

+4
source share
3 answers

First Google result :)
Although I can’t talk about how this is possible.

+3
source

I believe the 3rd edition is the latest:

JLS 3rd edition

+5
source

I'm not sure why you need the spec, but you might be interested to know that:

  • The Javac parser is hand-written. There are no parser generating tools.
  • There are many repositories for parser generator grammar generators. Here are JavaCC and ANTLR .
0
source

All Articles