run(check, verbose, istream);
}
public static Solution run(boolean check, boolean verbose, InputStream istream) throws IOException,RecognitionException{
ByteArrayOutputStream baos = new ByteArrayOutputStream();
StopWatch parseTimer = new StopWatch("parsing");
parseTimer.start();
HProgram parse = HProgramParser.parse(baos, istream);
parseTimer.stop();
if (verbose){
System.out.println(parseTimer);
}
if (parse == null)
throw HampiResultException.parse("Parse errors \n" + baos.toString());