瀏覽代碼

Refactoring of structure and removing some extraneous old code

Matt Coles 9 年之前
父節點
當前提交
821943f551
共有 3 個文件被更改,包括 0 次插入1 次删除
  1. 0 0
      examples/examples.mc
  2. 0 0
      examples/fizzbuzz.mc
  3. 0 1
      libjs/stdlib.js

example.mc → examples/examples.mc


fizzbuzz.mc → examples/fizzbuzz.mc


+ 0 - 1
libjs/stdlib.js

84
     } else {
84
     } else {
85
       methods = Object.keys(function_defs)
85
       methods = Object.keys(function_defs)
86
       if (methods.includes(prop)) {
86
       if (methods.includes(prop)) {
87
-        //return (function () { eval(function_defs[prop].replace(/\$(\d+)/g, (m, n) => JSON.stringify(arguments[(+n-1)]))) })
88
         return function_defs[prop]
87
         return function_defs[prop]
89
       } else {
88
       } else {
90
         console.error("Undefined function call! No such function: ", prop)
89
         console.error("Undefined function call! No such function: ", prop)