public ModuleStatement parseTemplate() throws IOException, ForgingException
{
Parser parser = new Parser();
parser.parse(this, _url, _input);
ModuleStatement script = _script;
if (script == null) {
error(getLocation(), "Document doesn't contain template");
}
if (_errorListener != null) {
throw new ForgingException(_errorListener);