try {
List<Module> modules = new List<Module>();
for(String src : srcs)
modules.add((Module)parser.parse(new Lexer(new StringReader(src))));
Program prog = new Program(modules);
prog.namecheck();
if(!prog.hasErrors()) prog.typecheck();
if(succeed) {
if(prog.hasErrors()) {
StringBuffer errors = new StringBuffer();
for(CompilerError err : prog.getErrors())