Example #1
0
 private int runMain() {
   addFunc("main", mainBlock);
   return prog.runFunction("main", args);
 }
Example #2
0
 private void addFunc(String name, Block block) {
   prog.addFunction(new Function(name, block, new ArrayList<String>()));
 }