Java 1.5 Grammar
Here is a Java 1.5 grammar for SableCC.
- The grammar is LALR(1).
- The complete parser requires a Unicode preprocessor in addition to the normal lexer/parser. The code of a complete parser program is provided.
- The parser has not been tested with Java files containing unusual Unicode characters. It should work, but we would appreciate any feedback you have.
- The grammar is based on the natural grammar exposed throughout the text of the third edition of the Java Language Specification. It is not based on the LL grammar exposed in Chapter 18.
Java 1.5 Grammar Files
Additional Files