return script;
}
private YARVCompiledRunner tryCompileYarv(Node node) {
try {
StandardYARVCompiler compiler = new StandardYARVCompiler(this);
ASTCompiler.getYARVCompiler().compile(node, compiler);
org.jruby.lexer.yacc.ISourcePosition p = node.getPosition();
if(p == null && node instanceof org.jruby.ast.RootNode) {
p = ((org.jruby.ast.RootNode)node).getBodyNode().getPosition();
}
return new YARVCompiledRunner(this,compiler.getInstructionSequence("<main>",p.getFile(),"toplevel"));
} catch (NotCompilableException nce) {
System.err.println("Error -- Not compileable: " + nce.getMessage());
return null;
} catch (JumpException.ReturnJump rj) {
return null;