Complete Java 6 parser
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


A Complete Java 6 parser.

Please, note that this work is not a developing parser "from scratch", some part of this work based on the reverse engineered opensource Oracle's javac compiler.

The purpose of this work was to separate lexer and parser into the stand alone library usable for the others.

The only dependency this library has is non-intrusive DI module. You may use spring, google guice, pico container or mine micro-di library.

Core module defines reusable parts that is not tied to java, such as

  • DiagnosticsLog - the reporter component that is able to provide the user with nicely formatted message, e.g. warning:
      [unchecked] unchecked generic array creation
      for varargs parameter of type List<String>[]
      1 warning
  • Naming module - efficient UTF-8 symbol table

  • Bundle - Resource bundle support

  • Source - wrapper around certain source code provider (e.g. file) with fast access to the source buffer

  • Tag - generic taggable base class that may be subclassed to provide certain class hierarchy with customizable user data

  • ImmList - a very small and efficient immutable alternative to the java's LinkedList

Maven Usage

Add the following repository:


and then add jar dependency in your pom.xml, e.g.:



This library comes under Apache 2.0 license - see LICENSE.txt in the root directory. You may freely use these library in both commercial and non-commercial development.

Have fun!