How to use biwascheme - 5 common examples

To help you get started, we’ve selected a few biwascheme 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 biwascheme / biwascheme / test / node_functions.js View on Github external
var ew = function(src){
  return BiwaScheme.to_write(BiwaScheme.run(src));
};
var puts = util.puts;
github biwascheme / biwascheme / test / node_functions.js View on Github external
var ev = function(src){
  return BiwaScheme.run(src);
};
var ew = function(src){
github biwascheme / biwascheme / test / node_functions.js View on Github external
"command-line": function(){
    var list = ev('(command-line)');
    assert.ok(BiwaScheme.isList(list));
    list.foreach(function(item){
      assert.ok(_.isString(item));
    });
  },
github biwascheme / biwascheme / test / node_functions.js View on Github external
"get-environment-variables": function(){
    var first_env = ev('(car (get-environment-variables))');
    assert.ok(BiwaScheme.isPair(first_env));
    assert.ok(_.isString(first_env.car));
    assert.ok(_.isString(first_env.cdr));
  }
};
github MikeHeaton / vambda / src / parse.js View on Github external
function execute (compiledLisp) {
  var onError = function(e){ console.error(e); }
  var biwa = new BiwaScheme.Interpreter(onError)
  return biwa.evaluate(compiledLisp)
}

biwascheme

A practical Scheme interpreter written in JavaScript

MIT
Latest version published 1 year ago

Package Health Score

61 / 100
Full package analysis