public static RAny eval(ASTNode expr) { try { return (RAny) truffleize.createLazyRootTree(expr).execute(null); // null means top-level } catch (RError e) { if (DEBUG) { e.printStackTrace(); } error(e); // throws an error } throw new Error("Never reached"); }
public static RNode createNode(ASTNode expr) { return truffleize.createTree(expr); }