Examples of InterruptException


Examples of org.rascalmpl.interpreter.control_exceptions.InterruptException

        gens[0] = producers.get(0).getBacktracker(__eval);
        gens[0].init();

        while (i >= 0 && i < size) {
          if (__eval.isInterrupted()) {
            throw new InterruptException(__eval.getStackTrace(), __eval.getCurrentAST().getLocation());
          }
          if (gens[i].hasNext()) {
            if (!gens[i].next()) {
              return new BoolResult(TF.boolType(), __eval
                  .__getVf().bool(false), __eval);
View Full Code Here

Examples of org.rascalmpl.interpreter.control_exceptions.InterruptException

      int i = 0;
      gens[0] = generators.get(0).getBacktracker(__eval);
      gens[0].init();
      while (i >= 0 && i < size) {
        if (__eval.isInterrupted()) {
          throw new InterruptException(__eval.getStackTrace(), __eval.getCurrentAST().getLocation());
        }
        if (gens[i].hasNext() && gens[i].next()) {
          if (i == size - 1) {
            return new BoolResult(TF.boolType(), __eval.__getVf()
                .bool(true), __eval);
View Full Code Here

Examples of org.rascalmpl.interpreter.control_exceptions.InterruptException

      eval.setCurrentAST(this);
      eval.notifyAboutSuspension(this);     

      try {
        if (eval.isInterrupted()) {
          throw new InterruptException(eval.getStackTrace(), eval.getCurrentAST().getLocation());
        }

        eval.setCurrentAST(this);

        Result<IValue> function = this.cachedPrefix;
View Full Code Here

Examples of org.rascalmpl.interpreter.control_exceptions.InterruptException

    IListWriter w = vf.listWriter();
    if (iFrom.lessEqual(iTo).getValue() && diff.greater(zero).getValue()) {
       while (iFrom.less(iTo).getValue()) {
        w.append(iFrom);
        iFrom = iFrom.add(diff);
        if (ctx.isInterrupted()) throw new InterruptException(ctx.getStackTrace(), ctx.getCurrentAST().getLocation());
      };
    }
    else if (iFrom.greaterEqual(iTo).getValue() && diff.less(zero).getValue()) {
       while (iFrom.greater(iTo).getValue()) {
        w.append(iFrom);
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.