How to use the do.until function in do

To help you get started, we’ve selected a few do examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github thisandagain / turtle / lib / language.js View on Github external
block = checkevalblock(block);

        while (tf()) {
          self.execute(block);
      }
    };
    self.routines["while"].noeval = true;

    self.routines["do.until"] = function(block, tf) {
        block = checkevalblock(block);

        do {
          self.execute(block);
      } while (!tf());
    };
    self.routines["do.until"].noeval = true;

    self.routines["until"] = function(tf, block) {
        block = checkevalblock(block);

        while (!tf()) {
          self.execute(block);
      }
    };
    self.routines["until"].noeval = true;

      // Not Supported: case
      // Not Supported: cond


      //
      // 8.2 Template-based Iteration
github thisandagain / logo / lib / language.js View on Github external
block = checkevalblock(block);

        while (tf()) {
          self.execute(block);
      }
    };
    self.routines["while"].noeval = true;

    self.routines["do.until"] = function(block, tf) {
        block = checkevalblock(block);

        do {
          self.execute(block);
      } while (!tf());
    };
    self.routines["do.until"].noeval = true;

    self.routines["until"] = function(tf, block) {
        block = checkevalblock(block);

        while (!tf()) {
          self.execute(block);
      }
    };
    self.routines["until"].noeval = true;

      // Not Supported: case
      // Not Supported: cond


      //
      // 8.2 Template-based Iteration
github thisandagain / logo / lib / language.js View on Github external
do {
          self.execute(block);
      } while (tf());
    };
    self.routines["do.while"].noeval = true;

    self.routines["while"] = function(tf, block) {
        block = checkevalblock(block);

        while (tf()) {
          self.execute(block);
      }
    };
    self.routines["while"].noeval = true;

    self.routines["do.until"] = function(block, tf) {
        block = checkevalblock(block);

        do {
          self.execute(block);
      } while (!tf());
    };
    self.routines["do.until"].noeval = true;

    self.routines["until"] = function(tf, block) {
        block = checkevalblock(block);

        while (!tf()) {
          self.execute(block);
      }
    };
    self.routines["until"].noeval = true;
github thisandagain / turtle / lib / language.js View on Github external
do {
          self.execute(block);
      } while (tf());
    };
    self.routines["do.while"].noeval = true;

    self.routines["while"] = function(tf, block) {
        block = checkevalblock(block);

        while (tf()) {
          self.execute(block);
      }
    };
    self.routines["while"].noeval = true;

    self.routines["do.until"] = function(block, tf) {
        block = checkevalblock(block);

        do {
          self.execute(block);
      } while (!tf());
    };
    self.routines["do.until"].noeval = true;

    self.routines["until"] = function(tf, block) {
        block = checkevalblock(block);

        while (!tf()) {
          self.execute(block);
      }
    };
    self.routines["until"].noeval = true;

do

The simplest way to manage asynchronicity

MIT
Latest version published 9 months ago

Package Health Score

59 / 100
Full package analysis