}
public static CompilationUnit doParse(InputSource in, CompileLog log, SemicolonInsertionMode semicolonInsertionMode) {
Scanner s;
try {
s = new Scanner(new InputStreamReader(new BOMStripperInputStream(in.getInputStream()), "UTF-8"));
} catch (IOException e) {
throw new CompilerError("Cannot read input file: " + in.getPath(), e);
}
s.setInputSource(in);
JooParser p = new JooParser(s);