Code coverage report for sc/scscript.js

Statements: 100% (25 / 25)      Branches: 100% (0 / 0)      Functions: 100% (10 / 10)      Lines: 100% (25 / 25)      Ignored: none     

All files » sc/ » scscript.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 481     1 1     1   1 30 30     1 1 1     1 1 1     1 1 1     1 1     1 1     1 1     1 1     1    
(function(sc) {
  "use strict";
 
  function SCScript(fn) {
    return sc.lang.main.run(fn);
  }
 
  SCScript.VERSION = sc.VERSION;
 
  SCScript.install = function(installer) {
    installer(sc);
    return SCScript;
  };
 
  SCScript.stdout = function(msg) {
    console.log(msg);
    return SCScript;
  };
 
  SCScript.stderr = function(msg) {
    console.error(msg);
    return SCScript;
  };
 
  SCScript.setConfig = function(name, value) {
    sc.config.set(name, value);
    return SCScript;
  };
 
  SCScript.getConfig = function(name) {
    return sc.config.get(name);
  };
 
  SCScript.tokenize = function(source, opts) {
    return sc.lang.compiler.tokenize(source, opts);
  };
 
  SCScript.parse = function(source, opts) {
    return sc.lang.compiler.parse(source, opts);
  };
 
  SCScript.compile = function(source, opts) {
    return sc.lang.compiler.compile(source, opts);
  };
 
  global.SCScript = sc.SCScript = SCScript;
})(sc);