Package abstrasy.interpreter

Examples of abstrasy.interpreter.InterpreterException


        /**
          * Si le symbole est déjà défini...
          */
        Heap localHeap = global.current();
        if (localHeap.containsKey(id))
            throw new InterpreterException(StdErrors.extend(StdErrors.Symbol_already_exists, id));
        setv_in_(localHeap, id, node);
    }
View Full Code Here


                Heap heap = getPhAlways_nd_(global, ids);
                /**
                 * test d'existance NON intégré...
                 */
                if (heap.containsKey(ids[ids.length - 1])) // Correctif du bug launchpad#1017500, l.bruninx (2012-06-25).
                    throw new InterpreterException(StdErrors.Symbol_already_exists);
                /**
                 * on continue si ok!...
                 */
                setv_in_(heap, ids[ids.length - 1], node);
            }
View Full Code Here

     * @param node   : valeur
     * @throws Exception
     */
    public static void defv_local(ASymbol id, Node node) throws Exception {
        if (id.getIdsCnt() > 1)
            throw new InterpreterException(StdErrors.Invalid_symbol);
        defv(id, node);
    }
View Full Code Here

    byte[] array;
   
    public Bytes(int size) throws InterpreterException {
        if (size<0)
            throw new InterpreterException(StdErrors.extend(StdErrors.Out_of_range, size + " must be >= 0"));
        array=new byte[size];
    }
View Full Code Here

        return array.length;
    }
           
    private final void checkAdr(int adr) throws InterpreterException {
       if (adr<0 || adr >= array.length)
            throw new InterpreterException(StdErrors.extend(StdErrors.Out_of_range, adr + " not in [0.." + array.length + "["));
    }
View Full Code Here

        Node old_iface = INTERFACE.swap(myIfaceNode);
        Node r=bodyIx.exec(true);
        INTERFACE.restore(old_iface);
        Heap.pull();
        if (r != null)
            throw new InterpreterException(StdErrors.Void_return_results);
    }
View Full Code Here

        map.put(symbole,qtype);
    }
   
    public void require(String symbole,Node slot) throws InterpreterException {
        if(slot==null)
            throw new InterpreterException(StdErrors.Internal_error);
        Long qtype=map.get(symbole);
        if(qtype==null)
            throw new InterpreterException(StdErrors.Symbol_not_defined);
        slot.requireNodeType(qtype.longValue());
    }
View Full Code Here

        while(items.hasNext()){
            String symbole=items.next();
            long qtype=map.get(symbole);
            Node slot=Node.VDelegable.getSlot(delegable, symbole,qtype);
            if(slot==null)
                throw new InterpreterException(StdErrors.extend(StdErrors.Symbol_required,symbole+" : "+Node.QTypeToString(qtype)));
        }
    }
View Full Code Here

   
            if (r != interpreter){ // on libère le verrou...
                //System.out.println(r);
                //System.out.println(interpreter);
                //System.out.println(Interpreter.SHARED_INTERPRETER);
                throw new InterpreterException(StdErrors.extend(StdErrors.Internal_error, "Node already unlocked"));
            }
           
        }
        else if(reentrant<0){
            throw new InterpreterException(StdErrors.extend(StdErrors.Internal_error, "Negative reentrant"));
        }
    }
View Full Code Here

            return BigDecimal.ROUND_HALF_EVEN;
        if (rm == RoundingMode.UP)
            return BigDecimal.ROUND_UP;
        if (rm == RoundingMode.DOWN)
            return BigDecimal.ROUND_DOWN;
        throw new InterpreterException(StdErrors.Internal_error);
    }
View Full Code Here

TOP

Related Classes of abstrasy.interpreter.InterpreterException

Copyright © 2018 www.massapicom. 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.