Examples of interpret()


Examples of org.jruby.ast.Node.interpret()

        Node bodyNode = ((BlockPassNode) blockNode).getBodyNode();
        IRubyObject proc;
        if (bodyNode == null) {
            proc = runtime.getNil();
        } else {
            proc = bodyNode.interpret(runtime, context, self, currentBlock);
        }

        return RuntimeHelpers.getBlockFromBlockPassBody(proc, currentBlock);
    }
View Full Code Here

Examples of org.jruby.ast.Node.interpret()

        Node bodyNode = ((BlockPassNode) blockNode).getBodyNode();
        IRubyObject proc;
        if (bodyNode == null) {
            proc = runtime.getNil();
        } else {
            proc = bodyNode.interpret(runtime, context, self, currentBlock);
        }

        return RuntimeHelpers.getBlockFromBlockPassBody(proc, currentBlock);
    }
View Full Code Here

Examples of org.jruby.compiler.ir.instructions.Instr.interpret()

                lastInstr = instrs[ipc];
               
                if (debug) System.out.println("EXEC'ing: " + lastInstr);
               
                try {
                    Label jumpTarget = lastInstr.interpret(interp, self);
                    ipc = (jumpTarget == null) ? ipc + 1 : jumpTarget.getTargetPC();
                }
                // SSS FIXME: This only catches Ruby exceptions
                // What about Java exceptions?
                catch (org.jruby.exceptions.RaiseException re) {
View Full Code Here

Examples of org.jruby.ir.instructions.Instr.interpret()

                // ---------- All the rest ---------
                default:
                    ipc++;
                    if (instr instanceof ResultInstr) resultVar = ((ResultInstr)instr).getResult();
                    result = instr.interpret(context, currDynScope, self, temp, block);
                    break;
                }

                if (resultVar != null) {
                    if (resultVar instanceof TemporaryVariable) {
View Full Code Here

Examples of org.rascalmpl.ast.Expression.interpret()

                  env.storeVariable(kwparam, ResultFactory.makeResult(kwType, r, ctx));
              }
              else {
                  env.declareVariable(kwType, kwparam);
                  Expression def = getKeywordParameterDefaults().get(kwparam);
                  Result<IValue> kwResult = def.interpret(eval);
                  env.storeVariable(kwparam, kwResult);
              }
          }
      }
      // TODO: what if the caller provides more arguments then are declared? They are
View Full Code Here

Examples of org.rascalmpl.ast.Module.interpret()

        if (!internalName.equals(name)) {
          throw new ModuleNameMismatch(internalName, name, x);
        }
        heap.setModuleURI(name, module.getLocation().getURI());
       
        module.interpret(eval);
       
        return env;
      }
    } catch (StaticError e) {
      heap.removeModule(env);
View Full Code Here

Examples of org.uscxml.Interpreter.interpret()

    TestAdhocIOProc ioProc = new TestAdhocIOProc();

    // parse and interpret
    Interpreter interpreter = Interpreter.fromXML(xml);
    interpreter.addIOProcessor(ioProc);
    interpreter.interpret();
  }

}
View Full Code Here

Examples of org.uscxml.Interpreter.interpret()

    // Start the interpreter in a separate thread
    Thread intrerpreterThread = new Thread(new Runnable() {
      @Override
      public void run() {
        try {
          interpreter.interpret();
        } catch (InterpreterException e) {
          e.printStackTrace();
        }       
      }
    });
View Full Code Here

Examples of org.uscxml.Interpreter.interpret()

    "  <final id=\"done\" />" +
    "</scxml>";

    // parse and interpret
    Interpreter interpreter = Interpreter.fromXML(xml);
    interpreter.interpret();
  }

}
View Full Code Here

Examples of org.uscxml.Interpreter.interpret()

    HTTPServer http = HTTPServer.getInstance(5080, 5081);
   
    URL jVoiceXMLDoc = new URL(new URL("file:"), "../../test/uscxml/test-jvoicexml.scxml");
    Interpreter interpreter = Interpreter.fromURI(jVoiceXMLDoc);
    interpreter.interpret();
  }

}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.