163164165166167168169170171172173
Log log = new Log(); compile(src_reader, opts, log); boolean logHasErrors = log.hasErrors(); log.report(src_file.getName(), src_reader); System.exit(logHasErrors ? 1 : 0); } catch (IllegalArgumentException e) { System.err.println(e.getMessage());
100101102103104105106107108109110
// Error(s) in source. Try to build anyway and compiler will print erorr reports. } src.reset(); Log log = new Log(); compile(src, options, log); log.report(grammar_file.getName(), src); } private boolean existsCurrentOutput(String output_file_name) { String dir = grammar_file.getParent();