process(root, escapeMode, templateName);
return new TemplateSyntaxTree(root);
} catch (IOException exception) {
throw new JSilverIOException(exception);
} catch (ParserException exception) {
throw new JSilverBadSyntaxException(exception.getMessage(), exception.getToken().getText(),
templateName, exception.getToken().getLine(), exception.getToken().getPos(), exception);
} catch (LexerException exception) {
throw new JSilverBadSyntaxException(exception.getMessage(), null, templateName,
JSilverBadSyntaxException.UNKNOWN_POSITION, JSilverBadSyntaxException.UNKNOWN_POSITION,
exception);
}
}