Module();
long ended = System.currentTimeMillis();
Statement stmt = flowPeek();
if (stmt == null || stmt.typeOf() != Statement.ST_MODULE) {
error(new Location(_url), "Unexcepted end of file");
throw new ForgingException(_listener);
}
ModuleStatement script = (ModuleStatement)stmt;
if (_listener != null) {
throw new ForgingException(_listener);
}
return script;
} catch (ParseException e) {
error(toLocation(e.currentToken), e.getMessage());
throw new ForgingException(_listener);
}
}