Source code:
Notes:
-
26-Aug-2004: This grammar has now been updated to address the 4 issues identified by Michael Stahl (author of
another Java 1.5 grammar also hosted on Antlr) and also incorporates his implementation of switchable enum/assert keywords.
-
21-Oct-2004: Added typeArguments to explicitConstructorInvocation [ new MyParameterised() ] and postfixExpression productions for
anonymous inner class super constructor invocation [ new Outer().super() ]. All JDK 1.5 source parses successfully with this grammar.
-
23-Oct-2004: Fixed bug in array declarations found by Geoff Roy