* @throws IOException
*/
protected Result internalParse(String file, Reader content, ParserConfiguration configuration) throws IOException {
RubyParser parser;
if(configuration.getVersion() == CompatVersion.RUBY1_8) {
parser = new Ruby18Parser();
}
else {
parser = new Ruby19Parser();
}
RubyParserWarningsCollector warnings = new RubyParserWarningsCollector();