Package abstrasy

Examples of abstrasy.Node.exec()


  public Node call(Node argvList) throws Exception {
        Node expr=Node.createExpr().append(methode);//.append(symbol); (optimisation l.bruninx, 2012-06-26)
        if(argvList!=null) expr.appendChildsOf(argvList);
        //Heap.push(); (optimisation l.bruninx, 2012-06-26)
        //Heap.setSELF(object);
    return expr.exec(false);
        //Heap.pull();
        //return result;
  }

    /**
 
View Full Code Here


            }
            else{
                Node expr = Node.createExpr();
                expr.addElement(fx);
                expr.addElement(new Node(fl[i].getAbsolutePath()));
                expr.exec(true);
            }
        }
    }
   
  public Node external_walk_files(Node startAt) throws Exception {
View Full Code Here

   * @throws Exception
   */
  public Node call(Node argvList,int index) throws Exception {
        Node expr=Node.createExpr().append(methode);
        if(argvList!=null) expr.appendChildsOf(argvList,index);
    return expr.exec(false);
  }
    /**
   * Réalise l'appel de la méthode en assignant le contexte d'évaluation.
     *
     * On notera que call_unary() est une optimisation spéciale de call(). En effet, call_unary() correspond au cas où la méthode est unaire (un seul argument).
View Full Code Here

  public Node call_unary(Node arg0) throws Exception {
        Node expr=Node.createExpr().append(methode);//.append(symbol); (optimisation l.bruninx, 2012-06-26)
        if(arg0!=null)expr.append(arg0);
    //Heap.push(); (optimisation l.bruninx, 2012-06-26)
        //Heap.setSELF(object);
    return expr.exec(false);
        //Heap.pull();
        //return result;
  }
   
  /**
 
View Full Code Here

        }
        else{
            // évaluation d'une expression (similaire à une réification)
            Node enode = new Node().append(xnode);
            enode.appendChildsOf(startAt, 2);
            return enode.exec(false);
        }
       
    }

}
View Full Code Here

             *   
             */
            boolean loop = true;
            while (loop) {
                _clear_closure_(local);
                xnode = enode.exec(true);
                loop = xnode==null && interpreter.isCanIterate() && (untilLoop ? !xPC_Condition(local, cnode): xPC_Condition(local, cnode));
            }
            //
            global.pull();

View Full Code Here

         *    la retourner directement comme résultat.
         *   
         */
        while (xnode==null && interpreter.isCanIterate()) {
            _clear_closure_(local);
            xnode = enode.exec(true);
        }
        global.pull();


        //global.getTailStack().setLock(tlock); // restore la tail recursive Stack...
View Full Code Here

                //
                boolean loop = true;
                while (loop && interpreter.isCanIterate()) {

                    global.push();
                    rnode = enode.exec(true);
                    global.pull();

                    if (rnode != null)
                        xnode.addElement(rnode.secure());
                   
View Full Code Here

                     *   
                     */
                    while (interpreter.isCanIterate() && tmpn != null && xnode==null) {
                        fxarg.setNumber(nlist);
                        _clear_closure_(local);
                        tmpn = fxn.exec(true);
                        if (tmpn != null) {
                            local.clear();
                            argv = Node.createCList();
                            argv.addElement(tmpn); // argv0 = element
                            argv.addElement(new Node(nlist++)); // argv1 = index
View Full Code Here

                    Heap local=Heap.current();
                   
                    while (interpreter.isCanIterate() && tmpn != null) {
                        fxarg.setNumber(nlist);
                        _clear_closure_(local);
                        tmpn = fxn.exec(true);
                        if (tmpn != null) {
                            argv = Node.createCList();
                            argv.addElement(tmpn); // argv0 = element
                            argv.addElement(new Node(nlist++)); // argv1 = index
                            local.clear();
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.