I would like to know if there are already machine-consumeable documents of the Java syntax available?
I know that the JLS presents the syntax in one of it’s chapters, but it’s not that machine-consumeable as literals and rules are denoted by different font settings in a pdf.
There exists a machine-consumeable document containing the Java-5 syntax in the Eclipse MoDisco project. However I’m also interested in the syntax of the other Java versions.
If you are talking about Grammar files for Different Parsers
Here is the JavaCC (Java Compiler Compiler) Grammar file for Java 1.4
Here is the ANTLR Grammar file for Java 1.5