{
String inputFile = file.substring(file.lastIndexOf("/") + 1);
String rawInputFile = inputFile.substring(0, inputFile.lastIndexOf("."));
String base = file.substring(0, file.lastIndexOf("/"));
lex = new JavaLexer(new ANTLRFileStream(file, "UTF8"));
CommonTokenStream tokens = new CommonTokenStream(lex);
JavaParser g = new JavaParser(tokens);
try {
// parse