示例#1
0
文件: RContext.java 项目: nunb/fastr
 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");
 }
示例#2
0
文件: RContext.java 项目: nunb/fastr
 public static RNode createNode(ASTNode expr) {
   return truffleize.createTree(expr);
 }