Barat - A Compiler Front-End for Java

Barat is a framework that supports static analysis of Java programs. It parses Java source code files and class files and builds a complete abstract syntax tree from Java source code files, enriched with name and type analysis information. It supports the complete Java language as of version 1.1. Barat supports traversals of abstract syntax trees using visitors and attributes, and provides additional features such as parsing comments as tags, access to parent nodes in the abstract syntax tree, and re-generation of source code. For users of Barat, there is no explicit distinction between phases of loading, parsing, and analyzing Java source code: All actions that need to be performed for building the AST of a Java program are transparent to clients of Barat and are triggered on demand.

More information on Barat can be found in a technical report (pdf version).

Barat is now hosted on sourceforge, please follow this link.

Barat has been implemented by Boris Bokowski with contributions from Andre Spiegel and Markus Dahm.

 


Boris Bokowski, May 06 2002